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
English,
2 months ago
Computer Science,
2 months ago
History,
2 months ago
Social Sciences,
5 months ago
Science,
5 months ago
Math,
11 months ago
Science,
11 months ago