Chapter 7
Q. 7.FAQ.1
Define a stack and list the operations performed on stacks.
Step-by-Step
Verified Solution
A stack is a linear data structure in which the insertion and deletion of an element is done only from the end called TOP. It is LIFO in nature (i.e., Last In First Out). Different operations that can be performed on stacks are:
a) Push operation
b) Pop Operation
c) Peek Operation