Lesson 6. Basic Program Control

Lesson 4, “The Pieces of a C Program: Statements, Expressions, and Operators,” covered the if statement, which gives you some control over the flow of your programs. Many times, though, you need more than just the ability to make true and false decisions. This lesson introduces three new ways to control the flow of the program. In this lesson you learn:

Image How to use simple arrays

Image How to use for, while, and do...while loops to execute statements multiple times

How you can nest program control statements

This is not ...

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.