CHAPTER 5OPERATORS, EXPRESSIONS, AND STATEMENTS

You will learn about the following in this chapter:

• Keyword:

while, typedef

• Operators:

= - * /

% ++ -- (type)

• C’s multitudinous operators, including those used for common arithmetic operations

• Operator precedence and the meanings of the terms statement and expression

• The handy while loop

• Compound statements, automatic type conversions, and type casts

• How to write functions that use arguments

Now that you’ve looked at ways to represent data, let’s explore ways to process data. C offers a wealth of operations for that purpose. You can do arithmetic, compare values, modify variables, combine relationships logically, and more. Let’s start with basic arithmetic—addition, subtraction, ...

Get C Primer Plus, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.