Question: Need help please. Also need to create a void testMax to test it out into main. Need it in C++. Thank you 17. Write a
Need help please. Also need to create a void testMax to test it out into main. Need it in C++. Thank you
17. Write a function int maximum (int list[], int n) that recursively finds the largest integer between listt0] and listtn]. Assume at least one element is in the list. Test it with a main program that takes as input an inte- ger count followed by the values. Output the original values followed by the maxi- mum. Do not use a loop in maximum. Output the value in the main program, not in the function. Sample Input 5 50 30 90 20 80 Sample Output Original 1ist: 50 30 90 20 80 Largest value: 90
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
