Advertisements
Advertisements
Question
Convert the following infix notation to postfix form.
(P + Q * R - S)/T * U
Answer in Brief
Solution
(P + Q * R - S)/T * U
= (P + QR* - S)/TU*
= (P + QR* S-)/TU*
= (PQR*S-+)/TU*
= PQR*S-+TU*/
- Order of precedence as per BODMAS rule:
() - *, /, % Same precedence, but the order of operation is left to right
- +, - Same precedence, but the order of operation is right to left
shaalaa.com
Conversion of Infix to Prefix and Post Fix Notations
Is there an error in this question or solution?