Recursion visualized
Step through how a recursive C++ function calls itself: the factorial call stack and the Fibonacci call tree.
Everything is simulated in this browser; nothing is sent to any server.
factorial(4) is called
Calls: 1 · factorial(4) = 24
factorial(4) is called
Call stack
- Running
- Waiting
- Resolved
Step 1 / 16