Advertisements
Advertisements
Question
Convert the following infix notation to postfix form.
(A − B / C) + (D * E / F) * G
Short Answer
Advertisements
Solution
(A-B/C) + (D* E/F) *G = ABC/−GDEF/**+
Order of precedence according to BODMAS rules: *, /, and % have the same precedence, but the order of operation is left to right.
+, − Same precedence, but the order of *, /, % Same precedence, but the order of operation is left to right
+, − Same precedence, but the order of operation is right to left.
shaalaa.com
Is there an error in this question or solution?
