Trying to push onto a full stack causes:

2025

Trying to push onto a full stack causes:

  1. A.

    Stack underflow

  2. B.

    Stack overflow

  3. C.

    Memory leak

  4. D.

    No effect

Attempted by 153 students.

Show answer & explanation

Correct answer: B

Pushing an item onto a stack that is already full causes stack overflow.

Explore the full course: Coding For Placement