Question :
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
1. abc X+ def ^^ – 2. abc X+ de^f^ – 3. ab+c Xd – e ^f^ 4. -+aXbc^ ^def Answer :
1 - abc X+ def ^^ –
|