KnowledgeBoat Logo

Computer Science

In a Stack, if a user tries to remove an element from an empty Stack, the situation is called:

  1. Underflow
  2. Empty collection
  3. Overflow
  4. Garbage collection

Python Stack

1 Like

Answer

Underflow

Reason — In a stack, if a user attempts to remove an element from an empty stack, the situation is called "underflow". This occurs because there are no elements left in the stack to be removed.

Answered By

2 Likes


Related Questions