Google News
logo
Data Structures - Quiz(MCQ)
Which of the following is the prefix form of A+B*C?
A)
ABC+*
B)
+AB*C
C)
+A*BC
D)
A+(BC*)

Correct Answer :   +A*BC


Explanation :

The prefix notation means all the operators that appear before operand.
 
To convert the infix expression into a prefix expression, we will move the operator to the left of the parenthesis as shown in the below figure.

Advertisement