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___
- A.
Underflow
- B.
Garbage collection
- C.
Overflow
- D.
None of the above
Attempted by 661 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.