What would be the Prefix notation and Postfix notation for the given equation? [code]A+B+C[/code]

Trương Duy

New member
What would be the Prefix notation and Postfix notation for the given equation?
Code:
A+B+C
A. ++ABC and AB+C+
B. AB+C+ and ++ABC
C. ABC++ and AB+C+
D. ABC+ and ABC+
 
Answer: a
Explanation: For prefix notation there is a need of reversing the giving equation and solving it as a normal infix-postfix question. We see that it doesn’t result as same as normal infix-postfix conversion.
 

Tìm kiếm

Back
Top