What are the contents of the stack (initially the stack is empty) after the…

What are the contents of the stack (initially the stack is empty) after the following operations?

PUSH (A)

PUSH (B)

PUSH (C)

POP

PUSH (D) ; POP ; POP ;

PUSH (E)

PUSH (F)

POP

  1. A.

    A

  2. B.

    ABCE

  3. C.

    AE

  4. D.

    ABE

Attempted by 105 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…