Write a program in c to short an array using pointer
Answers
Answered by
1
Explanation:
Logic to sort an array using pointers. Input size and elements in array. Declare two function with prototype int sortAscending(int * num1, int * num2) and int sortDescending(int * num1, int * num2) . Declare another function to sort array with prototype void sort(int * arr, int size, int (* compare)(int *, int *)) .
Similar questions