
Recursion: Frames, Tracing and Output
Base case and recursive case, what a stack frame holds, a stack snapshot for a function that prints before and after its recursive call, a tracing routine based on the call tree, prints placed between two recursive calls (in-order), static counters shared by all frames and the unspecified order trap in return f(n - 1) + c, value-returning recursion (digit sum, digit reversal, fast power) and recursion that never reaches its base case.


