ISRO | ISRO CS 2009 | Question 79
The infix expression A + (B – C)* D is correctly represented in prefix notation as
(A) A + B − C ∗ D
(B) + A ∗ − B C D
(C) A B C − D ∗ +
(D) A + B C − D ∗
Answer: (B)
Explanation: Given Expression = A + (B – C)* D
Prefix Notation: A + (- B C) * D A + (* - B C D) + A * - B C D
Option(B) is correct.
Quiz of this Question
Please comment below if you find anything wrong in the above post