Skip to content
Tech Dictionary
DictionaryThe dataContribute
Dictionary/Programming
CodeIntermediate

Stack

Also known as LIFO · call stack

A structure where the most recently added item is removed first.

Think of it this way

A stack of plates: taking the bottom one is a risky hobby.

In the real world

Function calls are commonly tracked using a call stack.

One thing to remember

Stack storage details vary between languages and runtimes.

Related

Data structureRecursion

Go a little deeper

  • Python language tutorial (opens in a new tab)
  • MDN Glossary (opens in a new tab)
Improve this entry

What do we build for, if not to lessen each other’s hardship?

Tech Dictionary