What do you mean by Infix prefix and postfix notations?
Infix, Prefix, and Postfix are the there ways of writing the expressions.
S.no | Infix notation | Prefix notation | Postfix notation |
---|---|---|---|
1. | Infix notation is written as X + Y.The usual method of writing any mathematical expression is Infix notation. In this notation, the operators are written between their operands. | Prefix notation is written as +XY.The operator comes before the operands. The evaluation of the prefix notation is from Left to Right | Postfix notation is written as XY+.in this notation the operator enters after the operand. The review of the prefix notation is from Left to Right. |
BY Best Interview Question ON 02 Feb 2019