+1 vote
in Data Structures & Algorithms I by (110k points)
What is the value of the postfix expression 6 3 2 4 + – *?

(a) 1

(b) 40

(c) 74

(d) -18

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

I had been asked this question in my homework.

1 Answer

+1 vote
by (412k points)
selected by
 
Best answer
Correct choice is (d) -18

The best explanation: Postfix Expression is (6*(3-(2+4))) which results -18 as output.

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

...