Question: Write a C++ function named oddIndexMaxSearch that returns an integer and takes one parameter, a one-dimensional array of non- negative integers named arr. The length
Write a C++ function named oddIndexMaxSearch that returns an integer and takes one parameter, a one-dimensional array of non- negative integers named arr. The length of the array is given by a constant named ARRAY_LEN. The function should search through the array and find the largest value with an ODD index and return it. The array should be passed by reference for speed and the values in the array should be guaranteed not to be changed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
