menu search
person
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”.
thumb_up_alt 51 like thumb_down_alt 0 dislike
232 views

1 Answer

 
verified

Output::

image


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

thumb_up_alt 51 like thumb_down_alt 0 dislike

Related questions

thumb_up_alt 51 like thumb_down_alt 0 dislike
523 views 1 answer
thumb_up_alt 50 like thumb_down_alt 0 dislike
14 views 1 answer
thumb_up_alt 50 like thumb_down_alt 0 dislike
5 views 1 answer
thumb_up_alt 52 like thumb_down_alt 0 dislike
159 views 1 answer

1.9k questions

1.5k answers

13 comments

69 users

...