1.

The prefix form of A-B/ (C * D ^ E) is?(a) -/*^ACBDE(b) -ABCD*^DE(c) -A/B*C^DE(d) -A/BC*^DEI would like to ask this question from Stack Operations topic in section Abstract Data Types of Data Structures & Algorithms IThis question was posed to me during an interview.

Answer» RIGHT answer is (c) -A/B*C^DE

Easy explanation - Infix EXPRESSION is (A-B)/(C*D^E)

(-A/B)(C*D^E)

-A/B*C^DE. THUS prefix expression is -A/B*C^DE.


Discussion

No Comment Found

Related InterviewSolutions