

MCQOPTIONS
Saved Bookmarks
1. |
Consider the following recursive implementation to find the largest element in an array:Which of the following lines should be inserted to complete the below code? |
A. | max_of_two(arr[idx], recursive_max_element(arr, len, idx)) |
B. | recursive_max_element(arr, len, idx) |
C. | max_of_two(arr[idx], recursive_max_element(arr, len, idx + 1)) |
D. | recursive_max_element(arr, len, idx + 1) |
Answer» D. recursive_max_element(arr, len, idx + 1) | |