Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<conio.h>
- struct student
- {
- int roll;
- char name[20];
- float fees;
- };
- void main()
- {
- struct student *ptr_stud;
- struct student stud={9,"Virajsinh",45000};
- clrscr();
- ptr_stud=&stud;
- printf("Student Roll : %d",ptr_stud->roll);
- printf("\nStudent Name : %s",ptr_stud->name);
- printf("\nStudent Fees : %.2f",ptr_stud->fees);
- getch();
- }
Add Comment
Please, Sign In to add comment