-
Program to sort the elements of an array in descending order in C language
The program below sort the elements of an array in descending order. It uses malloc function to allocate the space for number of elements that user enters. The code is pretty forward. With sizeof(), the program is taking the size of the n variable that’s taking the value from the user and with that value malloc…