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