Chapter Summary
C has a variety of data types. The basic types fall into two categories: integer types and floating-point types. The two distinguishing features for integer types are the amount of storage allotted to a type and whether it is signed or unsigned. The smallest integer type is char, which can be either signed or unsigned, depending on the implementation. ANSI C enables you to use signed char and unsigned char to explicitly specify which you want. The other integer types include short, int, long, and the C9X-proposed long long type. C guarantees that each of these types is at least as large as the preceding type. Each of them is a signed type, but with ANSI C you can use the unsigned keyword to create the corresponding unsigned types: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access