Examveda

Assume that the operators +,-, x are left associative and ^ is right associative. The order of precedence (from highest to lowest) is ^, x, +, -. The postfix expression for the infix expression a + b x c - d ^ e ^ f is?

A. a b c x + d e f ^ ^ -

B. a b c x + d e ^ f ^ -

C. a b + c x d - e ^ f ^

D. - + a x b c ^ ^ d e f

Answer: Option A


This Question Belongs to Data Structure >> Introduction To Data Structures

Join The Discussion

Related Questions on Introduction to Data Structures