Call Stack

The call stack is a data structure used by most programming languages to manage function calls and track their execution.

Call stack operates in a Last In, First Out (LIFO) manner, meaning the last function called is the first to be completed and removed from the stack.

Additional information

  • When a function is called, the following happens: the function's details, such as parameters, local variables, and the return address, are pushed onto the stackand when the function finishes execution, the program returns to the calling function, and the function's information is removed(popped) from the stack.

Related concepts

Call Stack — Structure map

Clickable & Draggable!

Call Stack — Related pages: