Login to ask a question from Arrays

Write a program in C to sort elements of an array in descending order.

Write a program in C to sort elements of an array in descending order.

#include 
void main()
{
    int arr1[100];
    int n, i, j, tmp;
    printf("\n\nsort elements of array in descending order :\n");
    printf("Input the size of array : ");
    fflush(stdout);
    scanf("%d", &n);
    printf("Input %d elements in the array :\n",n);
    for(i=0;i....
Show More
Previous Question Next Question
🔗

Similar Questions

From Arrays · C programming

View All
WhatsApp