topic: binary search
the compiler is showing error
Error in this program
Insert a break statement after line 24. You have missed that.
Thanks it worked
But can I know how it made a difference
I know that the break statement brings the control out of the loop
But otherwise also if the if statement is true then shouldn’t it come out
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.