Question discussion

What is the polish notation of the given infix expression?(A * B + C)/(E – F * G)

360017Medium DSSSB TGT Computer Science 0 replies 0 views
0
What is the polish notation of the given infix expression?
(A * B + C)/(E – F * G)
  • A+*/ABCE*FG
  • B/+*ABC–E*FG
  • C/ABC+*–E*FG
  • D+/ABC*–E*FG
Correct answer: B

Explanation

Convert to prefix: (A*B + C) becomes +*ABC and (E − F*G) becomes −E*FG. Then the division gives /+*ABC−E*FG.

Discussion 0

Nobody has replied yet. Start the discussion!