write a program in c to sort numbers in both descending and ascending order using array and pointers