Multiple choice

Performing POP on empty stack will result in

  1. underflow

  2. overflow

  3. garbage value

  4. Both (1) and (2)

  5. None of these

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

POP is used to read the last value stored in a stack. If the stack is empty, an error condition, i.e. underflow will result on performing POP.