Solveeit Logo

Question

Programming and Data Structure Question on Stack

Which of the following sequences of output can be generated
Which of the following sequences of output can be generated?

A

200, 300, 400, 100

B

100, 200, 400, 300

C

400, 200, 100, 300

D

300, 200, 400, 100

Answer

200, 300, 400, 100

Explanation

Solution

The correct options are (A), (C) & (D).