Which of the following is the prefix form of A+B*C?
2023
Which of the following is the prefix form of A+B*C?
- A.
+*ABC
- B.
ABC+*
- C.
+A*BC
- D.
More than one of the above
- E.
None of the above
Attempted by 703 students.
Show answer & explanation
Correct answer: C
To convert the infix expression A+B*C to prefix notation, follow these steps: Step 1: Identify operator precedence. Multiplication (*) has higher precedence than addition (+). Step 2: Group the expression as A + (B * C). Step 3: Convert the sub-expression (B * C) to prefix: * B C. Step 4: Now convert A + (* B C) to prefix: + A * B C. Final prefix form: +A*BC.