Question: Consider the following operation performed on a stack of size 5. After the completion of all operations, the number of elements present on the stack
Consider the following operation performed on a stack of size 5.


After the completion of all operations, the number of elements present on the stack are
A. 1
B. 2
C. 3
D. 4
Push (1); Pop (); Push (2); Push (3); Pop (); Push (4);
Step by Step Solution
3.45 Rating (155 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
