An expression is a combination of operands and operators that after evaluation results in single value. Operands consist of constants and variables. Operators consist of +,-, *, /.. etc., The different methods for evaluation of arithmetic expressions are Infix expression, Postfix expression, and Prefix expression.
1. Infix expression:
If an operator is in between two operands then it is called infix expression. For example A+B
2. Postfix expression:
an operator follows the two operands, it is called postfix expression. For example, AB+
3. Prefix expression:
If an operator precedes two operands, it is called prefix expression. For example, +AB