RECURSION ambiguity

This is sample program written to understand how return is used. plz clarify the doubt

code link: https://ide.codingblocks.com/s/55846

Hi Tushar, “true” is being printed in the output because you have put a semicolon after the if condition in line number 25. Because of the semicolon, the if statement is being terminated and the code after the semicolon is executed like an ordinary block of code.

my bad

thanks for pointing out the mistake