Skip to main content

Section 9.10 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.

Aside: Video Description.

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)