What will be output if the following sequence of operations are executed?
Posted: Wed Jul 13, 2022 7:41 pm
Push(a,s);
Push(b,s);
Pop(b);
Push(c,s);
a) abc
b) b
c) ac
d) acb
Push(b,s);
Pop(b);
Push(c,s);
a) abc
b) b
c) ac
d) acb
Accurate answers. Every time.
https://answerhappy.com/