Given an array arr = {5,6,77,88,99} and key = 88; How many iterations are done until the element is found?
A. 1
B. 3
C. 4
D. 2
Answer:D
Given an array arr = {5,6,77,88,99} and key = 88; How many iterations are done until the element is found?
A. 1 B. 3 C. 4 D. 2
Explanation: Iteration1 : mid = 77; Iteration2 : mid = 88;