C Program for Bubble Sort On Random Array (Descending Order)

Problem: Write a C program to sort a random array in descending order using bubble sort.

Que. What modifications are required to bubble sort to sort the integers in descending order?
Answer: We have to check whether previous integer is less than the next one and if it is then we have to swap it.

C Program:

Get This Program: