A stack can be defined as an ordered list in which insertion and deletion are performed at one end which is called top.The element at top position is called top element.
Insertion of element is called Push and deletion is called POP.
Stack is LIFO data structure. LIFO means Last-in-first-out. Here, the element which is inserted or added last, is accessed first.
code come here
The basic operations are performed in the stack as mentioned below.
No comments:
Post a Comment