The postfix expression for * + a b - c d is?
ab + cd - *
ab cd + - *
ab + cd * -
ab + - cd *
Answers
Answer:
Explanation:
This statement contain both operator and operands. In this expression '+', '-', '*' are operator and ab and cd are operands.
The operator precedence in computer goes as from under:
Addition operations are performed first.
Secondly the Substraction. And then
Finally the Multiplication.
According to question, postfix expressions contain operators at the end and operands before them.
Hence, the answer is
ab + cd - *
Answer:
According to the question the post-fix expression is "ab+cd-*". The reason fro this is because when there is a operator present in front of calculations, at that moment of time the particular operator is brought after it's operands.
Explanation:
The order of representation consists of three main parts, first is the in order, then comes pre order, and the last one is post order. In post order the operators symbol is brought after the operands, whereas in pre order the operators are brought before the operands.