34. Convert the following infix expressions into its equivalent postfix expressions.
(A + B ⋀D)/(E – F)+G

a) (A B D ⋀ + E F – / G +)
b) (A B D +⋀ E F – / G +)
c) (A B D ⋀ + E F/- G +)
d) (A B D E F + ⋀ / – G +)

Answer: a
Explanation: The given infix expression is (A + B ⋀D)/(E – F)+G. (A B D ^ + ) / (E – F) +G (A B D ^ + E F – ) + G. ‘/’ is present in stack. A B D ^ + E F – / G +. Thus Postfix Expression is A B D ^ + E F – / G +.

Leave a Reply

Your email address will not be published.