What is a stack?

Assembly Language Questions



80 Short 34 Medium 52 Long Answer Questions Question Index

What is a stack?

A stack is a data structure in computer programming that stores and manages data in a Last-In-First-Out (LIFO) manner. It is a region of memory that grows and shrinks automatically as data is pushed onto or popped off the stack. The stack is typically used for storing local variables, function call information, and return addresses in a program.