Question: 2. (Recursive Function) (20 points) Write a recursive function (use NO while loops or for loops) that prints all the elements of an array of
2. (Recursive Function) (20 points) Write a recursive function (use NO while loops or for loops) that prints all the elements of an array of integers, one per line. The function prototype should be void printArray (int [], int) Write a main function to test the printArray function using an array containing 5 elements. (Hint: The base case is an array of one element. Then just display this element.) 2 extra credit points will be added if a program is tested and the corresponding screen shot is tted
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
