...

/

Infix, Prefix, and Postfix Expressions

Infix, Prefix, and Postfix Expressions

Let’s discuss infix, prefix, and postfix expressions.

Infix expression

When we have an algebraic expression like A + B, we know that variable A is added to variable B. This type of expression is called an infix expression because the operator + is between operand A and operand B.

Ambiguous expressions

Let’s consider another infix expression, A + B * C. In the expression, there is the problem of operator precedence. What operation will be performed ...