#Pointer size in c how to#
In this C tutorial, we have learned how to sort the elements of an array in ascending or descending order using C pointer. Sample Output :Įnter 1 to sort in increasing order and 0 to sort in decreasing order : 1Įnter 1 to sort in increasing order and 0 to sort in decreasing order : 0
It takes one pointer to an integer array and the length of the array.