Binary Search recursive calls doubt

My doubt is not specifically for binary search .
I am using recursion to solve it but on line 13 and 15 , even if I dont write ‘return’ ( See the commented portion of the code ) , it is giving the correct output . Plz let me know the difference between writing return statement and not writing return statement on recursive calls .
Also , it would be grateful if you could dry run the recursive calls (without ’ return’ with recursive call on lines 13 and 15 ) .

here is the link :

Hi

without return statement it’s wrong way, better is to do with return ( even i haven’t seen such a error before)
you can read this article https://stackoverflow.com/questions/32513793/c-and-c-functions-without-a-return-statement

this is a kind of compiler error but which is grammatically correct so no error is popped out, (in latest compiler you might see this as error )

better is do with return statement always.

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.