Solveeit Logo

Question

Computer Science Question on Postfix Notation

Evaluate the given postfix expression:
Expression: 3 5 * 6 2 + 3 -

A

39

B

15

C

-9

D

-17

Answer

-9

Explanation

Solution

In postfix notation, operands come before the operator. The expression is evaluated as 3*5=15, 6+2=8, 15-8=7, giving a result of -9.