Prashnikaप्रश्निका
Code
About
‹ Back to the paper

Question 2(b)

2 marks

Computer ScienceISC 2017 Computer Science Paper 1ConversionData structures

Convert the following notation as directed.

Convert the following infix expression to postfix form: P * Q / R + (S + T)

Convert the following infix expression to postfix form: $P * Q / R + (S + T)$
Open in the Infix to postfix converter

Answer

Answer

PQ*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++$.