Binary Search Recursive calls

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 :
https://ide.codingblocks.com/s/74483

Hi
@sameershar98 please ask your doubt through ask doubt in your online course. I’m not able to view this in my portal. I hope you understand it.

Thanks

I have posted it . can you view it?