+1 vote
in Data Structures & Algorithms I by (110k points)
What is the result of the given postfix expression?  abc*+ where a=1, b=2, c=3.

(a) 4

(b) 5

(c) 6

(d) 7

I need to ask this question from Application of Stacks topic in chapter Application of Stacks of Data Structures & Algorithms I

The question was asked in examination.

1 Answer

+1 vote
by (408k points)
selected by
Best answer
Right option is (d) 7

Best explanation: The infix expression is a+b*c. Evaluating it, we get 1+2*3=7.

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.