Program to explain sorting of the elements of an array.
Firstly array means collection of elements of same data type stored in a continuous memory allocation. Sorting of the elements of an array means arranging the array elements in ascending or descending order.
Answer the Question