Jump to content

Stack

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Conversion script (talk | contribs) at 15:43, 25 February 2002 (Automated conversion). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

A stack is a Last In, First Out (LIFO) data structure that is very common in computer science. A stack is only accessable at one end (usually called the top). An operation that adds an element to a stack is called a push and one that removes an element is called a pop.

Many computer architectures use stacks to handle data and memory addresses (they are called stack-based architectures).