+ 1
What does âreturnâ do? Does it repeat a value?
I replaced 0 with âMain()â, and it popped out âHello World!â many times!
2 Answers
+ 6
return - returns the value of a function so that you can do something with it, i.e. assign it to a variable
+ 1
The phenomenon which occured in your code is called recursion
https://www.sololearn.com/learn/CPlusPlus/1641/