0 votes
in Data Structures & Algorithms I by (110k points)
Evaluate the postfix expression ab + cd/- where a=5, b=4, c=9, d=3.

(a) 23

(b) 15

(c) 6

(d) 10

Question is from Application of Stacks in portion Application of Stacks of Data Structures & Algorithms I

This question was addressed to me by my college director while I was bunking the class.

1 Answer

+1 vote
by (408k points)
selected by
Best answer
Correct choice is (c) 6

The explanation is: The infix expression is (a+b)-c/d. Evaluating it, (5+4)-9/3 gives 6.

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.