+2 votes
148 views
Write A Program in C++ that first initializes an array of given 10- sorted real numbers. The program must verify whether a given element belongs to this array or not, using BINARY SEARCH TECHNIQUE. The element (to be searched) is to be entered at the time of execution. If the number is found, the program should print its position in the array otherwise it should print, “The number is not found”.
in Programming by Expert (11.5k points) | 148 views

1 Answer

+2 votes
Best answer

Output::

image


Below code is executed on gdb turbo c++ compiler , it takes 10 input of given number then sort by binary search technique

by Expert (11.5k points)
970 questions
844 answers
12 comments
25 users