Question: C++ PROGRAMMING Write a function with the header int indexMax(int array[ ], int size) to return the index of the largest element. Write a test
C++ PROGRAMMING Write a function with the header int indexMax(int array[ ], int size) to return the index of the largest element. Write a test program that prompts the user to enter 10 numbers, invokes the function and then displays the index and the value of the largest element.
![C++ PROGRAMMING Write a function with the header int indexMax(int array[ ],](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3af071a8f8_08666f3af06bbe37.jpg)
Here are some sample runs: Enter 10 numbers: 13 5 4 43 5 45 46 100 47
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
