O'Reilly logo

C Primer Plus, Fifth Edition by Stephen Prata

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required