Recursive Factorial in C – How fact(5) Unwinds to 120
A function that calls itself, a one-line ternary, and five stack frames deep of multiplication — recursive factorial is the “hello world” of recursion, and this question from our C Programming Quiz App checks that you can actually trace it, because every wrong option is a factorial of something — just not the right thing. …