In the implementation of the stack there is a error occurred which is because of inefficient use of array space, are listed below-
Stack Underflow: When we are trying to pop up the item from the empty stack then the error occurred which is called stack underflow.
Stack Overflow: Stack Overflow happens when we are trying to push more push more item but the space are unavailable, then the error occurred is called stack overflow.
Comments
Leave a comment