What is the postfix representation of the following infix expression? (A + B) * C – D * E / F
What is the postfix representation of the following infix expression? (A + B) * C – D * E / F Correct Answer A B + C * D E * F / -
Concept:
() has highest precedence
* and / has same precedence while + and – has same precedence
(* and /) and higher precedence than (+, -)
Associativity is left to right:
Explanation:
(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 / –
মোঃ আরিফুল ইসলাম
Feb 20, 2025