Assume a stack-oriented processor has executed the following instructions:…

Assume a stack-oriented processor has executed the following instructions:
PUSH 4, PUSH 7, PUSH 8, ADD, PUSH 10, SUB, MUL
What stack elements remain at the end, using postfix evaluation order?

  1. A.

    4, 5

  2. B.

    10, 15

  3. C.

    20

  4. D.

    10

Attempted by 699 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…