Answer to Question #151437 in Algorithms for shan

Question #151437
Explain underflow and overflow error in case of Stack implementation.
1
Expert's answer
2020-12-18T14:49:17-0500

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.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS