Assume that the operators +,−,× are left associative and ^ is right associative. The order of precedence (form highest to lowest) is ^ ,×,+,−. The postfix expression corresponding to the infix expression a+b×d^e^f is
A
abc× + de ^ f ^
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
- + a × bc ^ ^ def
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
ab + c × d - e ^ f ^
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
abc × + def ^ ^-
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution
The correct option is D abc × + def ^ ^-
According to conditions given: