Skip to main content
Logo image

Section 9.9 Operator Precedence

Now that we know several logic and arithmetic operators, we need to know the order in which the computer will evaluate a more complex expression.
More advanced operator precedences are introduced in Section 26.1.

Check Your Understanding Check Your Understanding

1.

Suppose that variables a, b, and c of type int have been declared and assigned the values:
a=3
b=4
c=5
What is the value of the logic expression:
(a + b > c) && (c - b == a)