Why this is showing absent
@rupeshjha909
binary_search() function works on sorted array and your array is not sorted. Change your array to arr[] = {1, 9, 10, 11, 100}; It will show present.
@rupeshjha909
binary_search() function works on sorted array and your array is not sorted. Change your array to arr[] = {1, 9, 10, 11, 100}; It will show present.