Computer Science, asked by rudra9t2king, 17 days ago

Write a condition to check the overflow situation of stack.​

Answers

Answered by faizakhan809sis
1

Answer:

Insertion into stack (PUSH)

Overflow condition: When stack is completely full (i.e. TOP= MaxSize -1 ) and we try to insert more element onto stack then this condition is called overflow condition and no further element could be inserted now until any element is deleted.

Explanation:

When we remove the top item, that's called a pop. Underflow happens when we try to pop an item from an empty stack. Overflow happens when we try to push more items on a stack than it can hold. An error is a mistake that is probably unrecoverable.

Similar questions