Learn Before
Concept
Stack Allocation
In stack allocation, memory is allocated based on the function call stack or, in other words, based on the function currently being executed. When a function is called, its data types and variables are automatically allocated to the stack memory. Once the function is over, the data types are deallocated. Because of this, stack allocation is also known as temporary memory allocation. If the stack memory ends up becoming completely full, the program can no longer run and will throw a specific error called a stack overflow.
0
1
Updated 2021-06-10
Tags
Python Programming Language
Data Science