I have an array below, the concept is to allow the user to enter a number and if the number is contained in the array, the program should display the number as well as the position of the number.
But if the number is not present, the message program should display "No such number exist in the array".
How can I do this using Binary Search.
:confused:
int A[] = {14,52,87,36,12,2,3,1};