Student Example


            struct student
            {
              char name[20];
              int rollno, fees;
            };
          
            main()
            {
              struct student s;
              clrscr();
          
              printf("Enter the Name : ");
              scanf("%s", s.name);
          
              printf("\n Enter Roll No. :");
              scanf("%d", &s.rollno);
          
              printf("\n enter the Fees : ");
              scanf("%d", &s.fees);
          
              printf("\n Student Name is %s", s.name);
              printf("\n Roll No.of the student is is %d", s.rollno);
              printf("\n Fees of the Student is %d", s.fees);
          
              getch();
            }
          

Output: