In this can we use only return in the base case in place of return 0?
Recursion Problem
No!!
Note that you use
return;
only with void functions.
For int functions, you return an integer
return (any_integer);
similarly for string functions,
return (any_string);