In this program user ask to sort the record of multiple students merit wise. In this program structure type variable declared and a temp variable for temporary value storing. User need to establish the merit chart for sorting them. For this process user will use loop statement where user will calculate the data of students that are define on variable value. Loop statement will print all the data about student (roll no,score,name etc.). From the structure type variable.
The temp variable will hold the value for trespass the data to other variable. That after the loop process will admire the data according to Merit condition as the condition got true the sorted list will be on the screen. In the end sorted data will be print out as the result.
This is c program that ask user to sort student data merit wise.
- Declaring variables.
- Using loop Statement.
- Print out the result on the screen.
Here is C source code for Sorting the Record of student Merit wise. The output of this program shown below.
struct student s,temp;
printf("\nEnter no. of Students : ");
printf("\nEnter the rollno,name,college name,score ");
printf("\nThe Merit List is :\n");