November 2017
Intermediate to advanced
226 pages
5h 59m
English
The stack is used for short-term local storage in an ordered manner. Each thread in an application has a stack. A unique stack with a fixed size is assigned for a thread or a function when it is called. The size of the stack is defined when the application or thread starts. Also, this stack gets destroyed when this function or thread gets finished. The stack is mainly used to store local variables, save function return pointers, function argument exception handler records, and much more.
The stack builds up the data from bottom of the stack to the top, from a high memory address to a low memory address:

Read now
Unlock full access