The result evaluating the postfix expression 10 5 + 60 6/ * 8-

Options

  • A. 142
  • B. 213
  • C. 284
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

A. 142

Detailed Explanation

Evaluateing the postfix expression:

10 5 + 60 6 / * 8 −

Step-by-step (using stack rule)

  1. 10 5 +
    10+5=1510 + 5 = 15

  2. 60 6 /
    60÷6=1060 \div 6 = 10

  3. 15 10 *
    15×10=15015 \times 10 = 150

  4. 150 8 −
    1508=142150 - 8 = 142

OOps! You are currently offline.