Question: 5. Create a structure named Student with the following components and appropriate data types: Name, ID, CGPA. Using the above structure, take user input for

5. Create a structure named Student with the following components and appropriate data types: Name, ID, CGPA. Using the above structure, take user input for 5 students and save the information to a file. Then read from the file and print all the information of the student who has the second-highest CGPA. Use the file name info.txt. Use the prototype: void insertStudents(char *filename, Student *stdList), you have to pass the Student type array reference from the main. Also use the prototype Student find Second Highest(Student *stdList,int size) and void printStudent(Student std)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
