Program to Sort the Marks Of Given Subject in C by using User Defined Function.
#include
void sort(int m, int x[]);
main()
{
int i;
int marks[5]={40, 90, 73, 81, 35};
clrscr();
printf("Marks before sorting\n");
for(i=0; i<5; i="0;" i="1;" j="1;j<=">=x[j]
{
temp=x[j-1];
x[j-1]=x[j];
x[j]=temp;
}
}
}
}
No comments:
Post a Comment