Chapter Summary
C has many operators, such as the assignment and arithmetic operators discussed in this chapter. In general, an operator operates on one or more operands to produce a value. Operators, such as the minus sign and sizeof, that take one operand, are termed unary operators. Operators requiring two operands, such as the addition and the multiplication operators, are called binary operators.
Expressions are combinations of operators and operands. In C, every expression has a value, including assignment expressions and comparison expressions. Rules of operator precedence help determine how terms are grouped when expressions are evaluated.
Statements are complete instructions to the computer and are indicated in C by a terminating semicolon. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access