0

I was reading the explanations for: Understanding recursion in the beer bottle example, but I still don't understand the last part of the singSongFor function. When it reaches the final printf, why does it not simply print that there are 0 bottles in the bin because numberOfBottles is 0 after it prints that there are no more bottles of beer on the wall. I don't understand why it starts at 1 and why it increments when there is nothing increasing the value of numberOfBottles.

Community
  • 1
  • 1
user2288153
  • 61
  • 1
  • 1
  • 4

0 Answers0