In this program we are going to implement a structure called student_record. It contains member variables as student name, branch name, total marks.
To learn about structure and union from beginning Click Here.
//Declaration of structure student_record
//Member variables of student_record
//Number of students to include
printf("\nEnter the number of students you want to include:");
printf("\nEnter the following information related to students");
printf("\nStudent %d Name:",i+1);
//Printing student information on output window
printf("\n|| S.No. || Student Name || Branch Name || Total Marks ||");
printf("\n|| %d || %s || %s || %d ||",i+1,student[i].student_name,student[i].branch_name,student[i].total_marks);
For More GTU C Programming Lab Experiments Click Here