What does ‘stack underflow’ refer to?

Category: QuestionsWhat does ‘stack underflow’ refer to?
Editor">Editor Staff asked 2 months ago

What does ‘stack underflow’ refer to?
 
(a) accessing item from an undefined stack
 
(b) adding items to a full stack
 
(c) removing items from an empty stack
 
(d) index out of bounds exception
 
What is the answer? Thanks in advance

1 Answers
Editor">Editor Staff answered 2 months ago

Correct answer is (c) removing items from an empty stack
 
The best explanation: Removing items from an empty stack is termed as stack underflow.