Last Updated :
26 Dec, 2018
What infix expression is equivalent to the following postfix expression?
A B * C / D E + F G H / * - +
(A) A * B / C + (D + E – ((F * G )/ H))
(B) ((A * B) / C )+ (D + E – ((F * G )/ H))
(C) (A * (B / C)) + (D + E – (F * (G / H)))
(D) A * B / C + (D + E – (F * (G / H)))
Answer: (D)
Explanation: According to asigned priorities and association, only option (D) is correct infix of given postfix expression.
Ref: postfix to infix conversion
Quiz of this Question
Share your thoughts in the comments
Please Login to comment...