[Solved] Please help me with this recursive function


Since it’s recursive and the recursive call comes before your printline, it will recursively call itself over and over until it reaches the base case. Only first after the recursive calls have ended will your print be allowed to execute.

Something like this

Do something
   first recursive call
   Do something
      second recursive call
      Do something
         third recursive call
         Ending recursive
      Ending recursive
   Ending Recursive

First here will the entire method stop, but as you can se, the basecases / the end of the recursive calls, will actually execute inside the other recursive methods, so what you see in form on 012 is the rows executed after the recursion has ended.

1

solved Please help me with this recursive function