Skip to main content\(\newcommand{\N}{\mathbb N}
\newcommand{\Z}{\mathbb Z}
\newcommand{\Q}{\mathbb Q}
\newcommand{\R}{\mathbb R}
\newcommand{\lt}{<}
\newcommand{\gt}{>}
\newcommand{\amp}{&}
\definecolor{fillinmathshade}{gray}{0.9}
\newcommand{\fillinmath}[1]{\mathchoice{\colorbox{fillinmathshade}{$\displaystyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\textstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptstyle \phantom{\,#1\,}$}}{\colorbox{fillinmathshade}{$\scriptscriptstyle\phantom{\,#1\,}$}}}
\)
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)