1.

Consider the following recursive implementation of linear search: Which of the following recursive calls should be added to complete the above code?

A. recursive_search_num(arr, num+1, idx, len);
B. recursive_search_num(arr, num, idx, len);
C. recursive_search_num(arr, num, idx+1, len);
D. recursive_search_num(arr, num+1, idx+1, len);View Answer
Answer» D. recursive_search_num(arr, num+1, idx+1, len);View Answer


Discussion

No Comment Found