← Back

Flow of Recursive Programs & Call Stack

Each recursive call pushes frame; unwinds after base case.

recursionstackUpdated 2025-09-01

Stack Frames

  • Parameters & locals stored per call

Depth

  • Max depth ~ n for linear recursion