Recursive function to print an array in reverse order c++
Mar 15, 2014 · This code seems needlessly complicated. As laserlight pointed out there seems to be an odd mix of recursion and iteration. If you want to do it recursively stick to recursion and don't have the unrequired iterative loop (the recursive solution, by the way, will be an example of tail recursion which is easily converted to an iterative solution). Jun 27, 2019 · In this C programming tutorial, we will learn how to sort elements of an array in ascending or descending order using C pointer. The program will take the array inputs from the user and sort the array in ascending or descending order. Pointer in C : A variable is called a pointer variable in C if it can hold the address of a variable.