Question
What is the call stack and why is it limited?
Asked by: USER6262
45 Viewed
45 Answers
Answer (45)
The call stack is a data structure that keeps track of active function calls in a program. Each time a function is called, a new frame is added to the stack. When the function returns, its frame is removed. The stack has a limited size to prevent programs from consuming excessive memory. A 'Status_Stack_Overflow' occurs when the stack exceeds this limit.