infix to postfix conversion

infix to postfix conversion of expression code

Infix notation : Infix notation is the common arithmetic and logical notation, in which operator is written between operand.

e.g.
1+2

1+2*3

Postfix notation: Operators are written after their operands.

e.g.
1 2 3 + * 4 /

Some Examples of conversion of infix to postfix expression

Infix Postfix
A * B + C / D 

A * (B + C) / D

A B * C D / + 

A B C + * D /

 

Infix to postfix conversion of expression code in C