‹ Back to the paper
Convert the following infix expression to postfix form:
Convert the following infix expression to postfix form:
$P * Q / R + (S + T)$
Answer
Answer
AIPQ*R/ST++
$P * Q / R + (S + T)$: $P*Q \to PQ*$; dividing by R gives $PQ*R/$; $(S+T) \to ST+$; the final + gives $PQ*R/ST++$.
From ISC 2017 Computer Science Paper 1, question 2(b).