Computer Science

Pushing an element into a Stack already having five elements and a Stack of size 5, then the Stack becomes:

  1. User flow
  2. Crash
  3. Underflow
  4. Overflow

Python Stack

1 Like

Answer

Overflow

Reason — When pushing an element into a stack that already has five elements and the stack size is limited to 5, the situation is called an "overflow." This is because the stack has reached its maximum capacity, and adding another element would exceed the stack's limit, resulting in an overflow condition.

Answered By

3 Likes


Related Questions