Assume that the operators +,-, x are left associative and ^ is right associative. The order of precedence (from highest to lowest) is ^, x, +, -. The postfix expression for the infix expression a + b x c - d ^ e ^ f is?
A. a b c x + d e f ^ ^ -
B. a b c x + d e ^ f ^ -
C. a b + c x d - e ^ f ^
D. - + a x b c ^ ^ d e f
Answer: Option A

Join The Discussion