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

Get Learn C on the Mac: For OS X and iOS, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.