Stack is a specialized data structure that stores data(Abstract data type).
Stack is first in last out Structure (LIFO) Structure.
It has two main functions push and pop.
Insertion in a stack is done using push function and removal from a stack is done using pop function.
Stack allows access to only the last element inserted hence, an item can be inserted or removed from the stack from one end called the top of the stack.
It is therefore, also called last-In-first-Out (LIFO) list.
Stack has three properties:
Capacity stands for the maximum number of elements stack can hold,
Size stands for the current size of the stack
Elements is the array of elements.
To learn more about data structure visit us @ http://www.tccicomputercoaching.com
Contact us 98256 18292.
Mail to email@example.com