Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include<iostream>
  2.  
  3. using namespace std;
  4.  
  5. struct Student
  6. {
  7. char nm;
  8. int age;
  9. int id;
  10. };
  11.  
  12. typedef struct Student st;
  13.  
  14. int main()
  15. {
  16. st s;
  17. s.nm="Ajay";
  18. s.age=26;
  19. s.id=202;
  20. cout<<"Name is:"<<s.nm<<". Age is:"<<s.age<<". Id is:"<<s.id<<endl;
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement