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


Get C Programming in One Hour a Day, Sams Teach Yourself, 7th 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.