Implement a recursive C++ function which takes an array of integers (arr) and the starting (start) and ending (end) indices of a portion (part) of this array, and returns the index of the largest...


Implement a recursive C++ function which takes an array of integers (arr) and the starting (start) and
ending (end) indices of a portion (part) of this array, and returns the index of the
largest element present in that portion of array arr. The prototype of your function should be:
int findLargest (int* arr, int start, int end) For example, the function call findLargest(arr,3,8)
should determine and return the index of the largest element present in the array arr between the indices 3
and 8 (both inclusive)



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here