Vidyalelo
Data Structure · Q117

Introduction to Data Structures

Programming · Data Structure · question 117

Q117

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 ^ ^ -
Answer
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

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board