How would line 23 run

as after the code reaches line 20 it would repeat itself again and again so how it would go to line 23 and once it reaches line 23 then it would go to the 1st statement and then the previous recursive call would operate itself once again

when i hits the base case and hits the return stmt
then the following stmt after
generatestring(in , out , i+1 , j+1)
happens
it checks if (in [i+1 ] != ‘\0’)

when i will be at the last posiition then i+1 will be null
so next call happens


iss sir ki video dekho recursion kaise chalate h
123 jo mene figure meh kia tha vo inse samjho

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.