by Dinesh Thakur Category: C Programming (Pratical)

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.
Problem statement:
This is c program that ask user to sort student data merit wise.

  1. Declaring variables.
  2. Using loop Statement.
  3. 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
          int rollno;
          char name[20];
          char college[40];
          int score;
void main()
          struct student s[20],temp;
          int i,j,n;
          printf("\nEnter no. of Students : ");
          printf("\nEnter the rollno,name,college name,score ");
          printf("\nThe Merit List is :\n");

Sort the Record of Student Merit Wise

About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.C.A, MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.