help with recursions

Hey, currently im studying c++ and im stuck on recursions, does someone have a great explanation of how this works, how would it work and what would it be used for, like an example of a program, this will help me a lot. Thanks!
[DRAFT] How To: Recursion


PS But I think the termination condition for the factorial example is not quite right. 0! is 1, so it should stop at 0 (= 1) rather than 1.



Introduction to Computer Science - C++

What is a good example of recursion other than generating a Fibonacci sequence?
Last edited on
Thanks, this helped alot!
Topic archived. No new replies allowed.