Question discussion

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

358620Medium 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/ABC+*–E*FG
  • B/+*ABC–E*FG
  • C+/ABC*–E*FG
  • D+*/ABCE*FG
Correct answer: B

Explanation

Convert (A*B+C)/(E–F*G) to prefix form: A*B+C becomes +*ABC and E–F*G becomes –E*FG. Writing '/' before them gives /+*ABC–E*FG.

Discussion 0

Nobody has replied yet. Start the discussion!