Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- struct Student
- {
- char nm;
- int age;
- int id;
- };
- typedef struct Student st;
- int main()
- {
- st s;
- s.nm="Ajay";
- s.age=26;
- s.id=202;
- cout<<"Name is:"<<s.nm<<". Age is:"<<s.age<<". Id is:"<<s.id<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement