Chapter    8

More Data Types

You may now consider yourself a C Programmer, First Class. At this point, you’ve mastered all the basic elements of C programming. You know that C programs are made up of functions, one (and only one!) of which is named main(). Each of these functions uses keywords (such as if, for, and while), operators (such as =, ++, and *=), and variables to manipulate data and make decisions.

Sometimes you’ll use a parameter to pass values between a calling and a called function. Sometimes these parameters are passed by value; other times pointers are used to pass a parameter by address. Some functions return values. Others, declared with the void keyword, don’t return a value.

So far, all of the variables you’ve declared are ...

Get Learn C on the Mac: For OS X and iOS, Second 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.