Consider the following operations performed on a stack of size 5:
Push(a); Pop(); Push(b); Push(c); Pop();
Push(d); Pop(); Pop(); Push(e);
Which of the following statements is correct?
(A) Underflow occurs
(B) Stack operations are performed smoothly
(C) Overflow occurs
(D) None of the above
Push(a); Pop(); Push(b); Push(c); Pop();
Push(d); Pop(); Pop(); Push(e);
Which of the following statements is correct?
(A) Underflow occurs
(B) Stack operations are performed smoothly
(C) Overflow occurs
(D) None of the above