The infix expression (a -b) / (c+d) converted to POSTFIX is :
The infix expression (a -b) / (c+d) converted to POSTFIX is :
Solution
The brackets force (a - b) and (c + d) to be evaluated first, and the division is done last. Each bracket converts on its own: and .
The operator / then goes after both operands, which gives .
Option 1: here / is applied to c and d, and + is applied last, which changes the order of operations.
Option 3: the operands a, b, c, d are written together, so - would act on c and d instead of a and b.
Option 4: it gives a - ((b) ... ) style grouping with / acting on c and d, which ignores the brackets.
In postfix, the operator always comes right after its two operands, and brackets are never needed.
Related questions:
2026: 23 May Shift 2
2026: 26 May Shift 1
2025: 16 May Shift 1