Skip to content
stack

File:Tallrik_-_Ystad-2018.jpg · Wikimedia Commons · See Wikimedia Commons

EntityQ177929· pop 57· linked from 433 articles

abstract data type

AI overview

A stack is a way of organizing data where items are added and removed from the same end, following a "last in, first out" principle—like a stack of plates where you take the top plate off first. This simple organizational method matters because it's useful for many computing tasks, such as undoing actions in software or managing how a computer processes nested instructions.

AI-generated from the Wikipedia summary — may contain errors.

Wikidata facts

Image
Data stack-ar.svg
Show 2 more facts
Commons category
Stack data structures
Sources (3)

via Wikidata · CC0

~25 min read

Article

Similarly to a stack of plates, adding or removing is only practical at the top. Simple representation of a stack runtime with push and pop operations

In computer science, a stack is an abstract data type that serves as a collection of elements with two main operations:

Gallery (9)

Connections

Categories