Discussions
Meeta

· started a discussion

· 1 Months ago

Please check it once again because post order traversal can not have any operand as last symbol.

Question:

What is the postfix representation of this expression

? (12 – a) * (b + 9) / (d * 4)

Options:
A) 4 b * d 9 + a 12 - * /
B)  / 12 a – b 9 + d 4 *
C) 12 – a * b + 9 / d * 4
D) 12 a – b 9 + * d 4 * / 8
E) 12 a – b 9 + * / 8 d 4 *
Solution:
Ans: (d) 12 a – b 9 + * d 4 * / 8

gurpreet

· commented

· 1 Months ago

yes last part 8 is extra here..

All Rights Reserved Top Rankers