Which of the following prefix expressions is obtained on converting the infix…
2018
Which of the following prefix expressions is obtained on converting the infix expression A * ( B - C )?
- A.
A B C * -
- B.
- A * B C
- C.
* - A B C
- D.
* A - B C
Attempted by 175 students.
Show answer & explanation
Correct answer: D
To convert the infix expression A * ( B - C ) to prefix, solve the parentheses first: (B - C) becomes -BC. Next, apply the multiplication operator to A and (-BC), placing the operator at the front: *A-BC. Therefore, the correct option is D.