Stack Introduction

Stack:
1. Stack is LIFO Structure [Last in First Out ]
2. Stack is Ordered List of Elements of Same Type.
3. Stack is Linear List
4. In Stack all Operations such as Insertion and Deletion are permitted at only one end called Top

Position of Top and Its Value:


Position of Top

Status of Stack

-1
Stack is Empty
0
First Element is Just Added into Stack
N-1
Stack is said to Full
N
Stack is said to be Overflow


No comments:

Post a Comment