O'Reilly logo

C Programming in One Hour a Day, Sams Teach Yourself, Seventh Edition by Dean Miller, Peter Aitken, Bradley L. Jones

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

Lesson 4. The Pieces of a C Program: Statements, Expressions, and Operators

C programs consist of statements, and most statements are composed of expressions and operators. To write C programs, you need to understand statements, expressions, and operators. In this lesson you learn:

Image What a statement is

Image What an expression is

Image How to use C’s mathematical, relational, and logical operators

What operator precedence is

The if statement

Statements

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