Convert the following infix expression into its equivalent post fix expression
Convert the following infix expression into its equivalent post fix expression
(A + B^D)/(E – F) + G
Show answerHide answer
Correct answer: (A) ABD^ + EF –/G+
Explanation
^ has the highest precedence, so B^D becomes BD^, and A + B^D becomes ABD^+. E – F becomes EF–. Dividing gives ABD^+EF–/, and adding G gives ABD^+EF–/G+.