Understanding recursion in the beer bottle example

后端 未结 7 1392
生来不讨喜
生来不讨喜 2020-12-21 01:37

I am practicing recursion in C on my own and I found this example online. However there is one thing I don\'t understand.

void singSongFor(int numberOfBottle         


        
7条回答
  •  [愿得一人]
    2020-12-21 01:46

    The recycling statement runs after the recursive call returns.

    Each of the recursion calls will eventually finish and the program will continue on to the recycling statement that follows, each with its own local variable values.

提交回复
热议问题