When the user tries to delete an element from an empty stack, the condition is called an underflow. This occurs when a pop operation is attempted on a stack that has no elements left to remove (i.e., the stack is empty).
When the user tries to delete an element from an empty stack, the condition is called an underflow. This occurs when a pop operation is attempted on a stack that has no elements left to remove (i.e., the stack is empty).