Definition, Meaning & Synonyms

stack

noun
/stæk/
Definition
A stack is a collection of items arranged in a specific order, typically with the last item added being the first one to be removed (LIFO – Last In, First Out).
Examples
  • She put the books back on the stack.
  • The programmer used a stack to manage function calls.
  • They built a stack of firewood for the winter.
Meaning
In general usage, a stack refers to a heap or pile of objects placed on top of each other. It can also refer to a structure or arrangement where things are organized vertically or sequentially.
Synonyms
  • pile
  • heap
  • tower
  • collection