I have tried the following question using recursion but it always return me array where all elements are 0, the new array does not get appended.
Question:
Take as input N, a number. Take N more inputs and store that in an array. Write a
recursive function which inverses the array. Print the values of inverted array.
My attempt:
By applying the normal for loop I was getting the output but attempting recursive approach of the same I am not getting the correct output.
Please guide.