Which of the following stack operations can result in stack underflow?

Which of the following stack operations can result in stack underflow?

  1. A.

    Performing push() on a full stack

  2. B.

    Performing pop() on an empty stack

  3. C.

    Accessing the top element of a non-empty stack

  4. D.

    Initializing a stack with size 0

Attempted by 1032 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…