What is Stack ?
Stack :-
A stack is an abstract data type, Which declares two methods PUSH and POP.
Stacks are implemented either by an array or by a link list. The PUSH operation allows us to insert data at the end of an array or linked list. The POP operation allows us to remove data from the end of an array or link list. Due to this behavior of PUSH and POP operation a stack is called a last in first out (LIFO) system.
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment