How does a call stack work in programming, and why is it important?
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: easy
Interview Round: Other
Overview: Explain how the call stack tracks function calls, what happens when a function is called and when it returns, and why programs depend on it. Tests understanding of stack frames, recursion, stack overflow, local variable lifetime and stack traces.