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

(a) *AB/CD+

(b) AB*CD/+

(c) A*BC+/D

(d) ABCD+/*

My question is taken from Stack Operations topic in portion Abstract Data Types of Data Structures & Algorithms I

The question was posed to me by my college professor while I was bunking the class.

1 Answer

+1 vote
by (412k points)
selected by
 
Best answer
Right choice is (b) AB*CD/+

To explain: Infix expression is (A*B)+(C/D)

AB*+(C/D)

AB*CD/+. Thus postfix expression is AB*CD/+.

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.

Categories

...