C Program to input and display details of students using structure. In this example, we will enter the details of students like roll number, name and total marks using structure and will be displayed. The total number of student should be entered according to the requirements of the user(maximum value is 50). We can increase the maximum number by changing the statement struct student[50]; to struct student[100]; Here in the output we have entered details of four student and displayed them accordingly. PROGRAM #include <stdio.h> #include <conio.h> struct student { int roll ; char name [ 20 ]; int total ; }; void main () { int i , n ; struct student std [ 50 ]; printf ( "Enter the number of students ...
Comments