Computer Science, asked by suvanshmahajan5019, 8 months ago

What is the basic elementary operation for a stack

Answers

Answered by gaurav11643
0

Answer:

There are three basic elementary operations for a stack.

  1. Push It adds an item in the stack. If the stack is full then, it is said to be an overflow condition.
  2. Pop It removes an item for the stack. The items are popped in the reversed order in which they are pushed. If the stack is empty, then it is said to be an underflow condition.
  3. Peek or Top It returns top element of stack.

Explanation:

  • I hope it will be helpful to you.
Similar questions