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

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