1.

What is the postfix expression of 9+3*5/(10-4)?(a) 9 3 + * 5 / 10 4 –(b) 9 3 5 + * / 10 4 –(c) 9 3 + 5 * / 10 4 –(d) 9 3 5 * / + 10 – 4This question was posed to me in an internship interview.Enquiry is from Trees topic in division Trees of Discrete Mathematics

Answer» RIGHT ANSWER is (c) 9 3 + 5 * / 10 4 –

For explanation I would say: The EXPRESSION, 9+3*5/(10-4)

= 9+3*5/(10 4-)

= 9+35/*(10 4-)

= 935/*+(10 4-)

So the output is:9 3 5 / * + 10 4 -.


Discussion

No Comment Found

Related InterviewSolutions