Virajsinh

B_PRM_09

Oct 13th, 2017
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.38 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<conio.h>
  3.  
  4. struct student
  5. {
  6.     int roll;
  7.     char name[20];
  8.     float fees;
  9. };
  10.  
  11. void main()
  12. {
  13.     struct student *ptr_stud;
  14.     struct student stud={9,"Virajsinh",45000};
  15.     clrscr();
  16.     ptr_stud=&stud;
  17.     printf("Student Roll : %d",ptr_stud->roll);
  18.     printf("\nStudent Name : %s",ptr_stud->name);
  19.     printf("\nStudent Fees : %.2f",ptr_stud->fees);
  20.     getch();
  21. }
Add Comment
Please, Sign In to add comment