Normalization
November 6, 2023Question 11952 – CIL 2020 General Paper
November 6, 2023Question 1089 – Nielit Scientist-B CS 22-07-2017
Assume that the operators +,-,x are left associative and 6 right associative. the order of precedence(from highest to lowest) is 6,x,+,-. The postfix expression corresponding to the infix expression
a+bxc-d^e^f is
Correct Answer: A
Question 6 Explanation:
a+bc-d^e^f
⟶ left to right
Step 1: abc+
⟶ left to right
Step 1: abc+
abc x+def^^-
abc xde^f^-
ab +c xd -e^f ^
-+ a x bc ^^def
Subscribe
Login
0 Comments