Write a c program to sort strings in descending order.
#include<conio .h="">
#include <stdio .h="">
int main()
{
int sort[10],i,j,t;
printf("\n\nEnter 10 Elements In Array To Sort In Descending Order :\n\n");
for(i=0;i<10 d="" for="" i="" if="" j="i+1;j<10;j++)" scanf="" sort="">sort[j])
{
t=sort[i];
sort[i]=sort[j];
sort[j]=t;
}
}
}
printf("Array Elements in Descending Order Are :");
for(i=9;i>=0;i--)
{
printf("%d\n",sort[i]);
}
getch();
return 0;
}
/*Output
Enter 10 Elements In Array To Sort In Descending Order :
20
36
5
2
7
9
13
52
45
63
Array Elements in Descending Order Are :63
52
45
36
20
13
9
7
5
2
*/</10></stdio></conio>