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[ ],

Here are some sample runs: Enter 10 numbers: 13 5 4 43 5 45 46 100 47 The largest element is 100, and the index of the largest element is 8 Enter 10 numbers: 1111111111 The largest element is 1, and the index of the largest element is 9

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!