Write about coondition for stack to overflow
when implementing two stacks in single array.
Anos
Answers
Answered by
0
Answer:
Stack overflow condition occurs even if there is a space in the array. In the above example, if we are performing push1() operation on the stack1. Once the element is inserted at the 3rd index and if we try to insert more elements, then it leads to the overflow error even there is a space left in the array.
Similar questions