Jun 26, 2024
5 + 1 - Contains constant and operator.P + Q - Contains variables and operator.a + 5 - Contains variable and constant with operator.a - 1 + 5
+, operands are 5 and (a - 1).-, operands are a and 1.5 + 1 * 6
5 + 6 = 11).(5 + 1) * 6 = 36.( ) - Highest precedence.^* and Division /+ and Subtraction -*1 + 2 * 3 / 5
2 * 3 = 6, then 6 / 5, then add 1.2 ^ 2 ^ 3
2 ^ (2 ^ 3) = 256.2 ^ 2 ^ 3 must be evaluated correctly).a * (b + c) in Infix.* a + b c.a * (b + c) in Infix.a b c + *.