Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
+1 vote
52.8k views
in Information Technology by (120k points)
closed by
What is the value of the postfix expression 6 3 2 4 + – *?

(a) 1

(b) 40

(c) 74

(d) -18

2 Answers

+1 vote
by (17.0k points)
selected by
 
Best answer

Correct option is (-d) -18

Postfix expression given: 6 3 2 4 + - *

What the above expression can be represented as:

Bracket is not implied by given expression but I've used it to tell you how this expression will look like when converted to Infix express.

  1. 6 3 (2 + 4) - *
  2. 6 (3 - (2 + 4)) *
  3. 6 * (3 - (2 + 4))

Infix expression of given Postfix expression:

6 * (3 - (2 + 4))

6*(3 – 6)

6*(-3)

-18

Hence the Postfix expression evaluates to: (-18).

+1 vote
by (121k points)
Correct choice is (d) -18

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

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...