Understanding recursion in the beer bottle example

后端 未结 7 1359
生来不讨喜
生来不讨喜 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 02:08

    Step through what this is function is doing in a debugger and you will see exactly how this recursion works. I'm not being pedantic; I literally cannot think of any better way to illustrate what this is doing than referring to this interactive approach.

    0 讨论(0)
提交回复
热议问题