December 2011
Beginner
600 pages
11h 25m
English
In this chapter, we take a look at the basic data types and describe some fundamental rules for forming arithmetic expressions in Objective-C.
You have already encountered the Objective-C basic data type int. As you will recall, a variable declared to be of type int can be used to contain integral values only—that is, values that do not contain decimal digits.
The Objective-C programming language provides three other basic data types: float, double, and char. A variable declared to be of type float can be used for storing floating-point numbers (values containing decimal digits). The double type is the same as type float, typically with roughly twice the range. Finally, the char data type ...
Read now
Unlock full access