Which one of the following is prefix representation of the infix expression A…
2018
Which one of the following is prefix representation of the infix expression A * (B + C) / D ?
- A.
/*A+BCD
- B.
A + B / CD
- C.
+*AB/CD
- D.
None of the above
Attempted by 1100 students.
Show answer & explanation
Correct answer: A
Stepwise conversion:
(B + C) → + B C
A * (B + C) → * A + B C
[A * (B + C)] / D → / * A + B C D
Prefix form (compact): /*A+BCD