O'Reilly logo

Learn C on the Mac: For OS X and iOS, Second Edition by James Bucanek, David Mark Scott Brown

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    6

Controlling Your Program’s Flow

So far, you’ve learned quite a bit about the C language. You know about functions (especially one named main()), which are made up of statements, each of which is terminated by a semicolon. You know about variables, which have a name and a type. Up to this point, you’ve dealt with variables of type int.

You also know about operators, such as =, +, and +=. You’ve learned about postfix and prefix notation and the importance of writing clear, easy-to-understand code. You’ve learned about the Standard Library, a set of functions that comes as standard equipment with every C programming environment. You’ve also learned about printf(), an invaluable component of the Standard Library, and how to use the ...

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