If the size of the stack is 10 and we try to add the 11th element in the stack…

2024

If the size of the stack is 10 and we try to add the 11th element in the stack then the condition is known as___

Answer: C. OverflowAnswer: c Explanation: The answer is c because the stack is full with its 10 elements, and inserting one more element in a stack will lead to the stack…

  1. A.

    Underflow

  2. B.

    Garbage collection

  3. C.

    Overflow

  4. D.

    None of the above

Attempted by 1032 students.

Show answer & explanation

Correct answer: C

Answer: c

Explanation: The answer is c because the stack is full with its 10 elements, and inserting one more element in a stack will lead to the stack overflow.

Explore the full course: Coding For Placement

Loading lesson…