+1 vote
in Data Structures & Algorithms I by (110k points)
The prefix form of A-B/ (C * D ^ E) is?

(a) -/*^ACBDE

(b) -ABCD*^DE

(c) -A/B*C^DE

(d) -A/BC*^DE

I would like to ask this question from Stack Operations topic in section Abstract Data Types of Data Structures & Algorithms I

This question was posed to me during an interview.

1 Answer

+1 vote
by (412k points)
selected by
Best answer
Right answer is (c) -A/B*C^DE

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


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

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.