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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!