-
Assume that the operators +, –, ×, are left associative and ^ is right associative. The order of precedence (from highest to lowest) is ^, ×, +, –. The postfix expression corresponding to the infix expression a + b × c – d ^ e ^ f is
-
- abc × + def ^^–
- abc × + de^f^–
- ab + c × d – e^f^
- – + a × bc ^^ def
- abc × + def ^^–
Correct Option: A
a + b × c – d ^ e ^ f
a + b × c – d ^ e f ^
a + b × c – d e f ^ ^
a + b c × – d e f ^ ^
a b c × – d e f ^ ^
a b c × + d e f ^ ^
a b c × + d e f ^ ^–
the result is obtained.