Stacks
Revision as of 10:47, 15 May 2017 by ThomasWard (talk | contribs)
A stack is a data structure that can only have data added or removed from the top. The stack has limited size and the stack pointed will always point to the value at the top of the stack. An empty stack thus has a stack pointer value of 0. You can only push an item if the stack is not full. You can only pop an item if the stack is not empty.