Question: Write a function int findMax ( int vals [ ] ) to locate and return the maximum value of the passed array vals [ ]
Write a function int findMax int vals to locate and return the maximum value of the passed array vals In mai n function, declare an array nums with integer element input all elements, call function findMax nums to get the maximum value of the array, display the maximum.
Hint: you should define the size of array as a symbolic const ant NUMELS
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
