in the code where we have to provide the recursive case, where we are writing the ‘return’, it gives error in the code every compiler, it should have some return value.
And in this code according to the video, there is no return value shown. then how it got compiled? Is it only possible in VS CODE and no other compiler.
Compilation error
hi @siddharthkumaree21b954_52c884d346b69187 thats not possible
here return type is void in video may be u have written int
1 Like
yes i understood, thank you for help
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.
1 Like