T Thành Đạt New member Sep 16, 2021 #1 What will be output if the following sequence of operations are executed? Push(a,s); Push(b,s); Pop(b); Push(c,s); A. abc B. b C. ac D. acb
What will be output if the following sequence of operations are executed? Push(a,s); Push(b,s); Pop(b); Push(c,s); A. abc B. b C. ac D. acb
Đ Đăng Khánh New member Sep 16, 2021 #2 Answer: B Explanation: The element ‘b’ is popped out of the stack. Hence the output of the following sequence of operations will be ‘b’. Upvote 0 Downvote
Answer: B Explanation: The element ‘b’ is popped out of the stack. Hence the output of the following sequence of operations will be ‘b’.