2.2 Data Types and Sizes
- short and long (qualifiers) apply to integer data type
- int will normally be the natural size of a particular machine
- short is often 16 bit; long is 32 bit, integer can be 16 or 32 bits
- signed and unsigned (qualifiers) apply to char and int
- Unsigned numbers are always positive or zero and obey the laws of arithmetic modulo 2^n, where n is the number of bits in the type
- long double specifies extended-precision floating points
- The standard headers <limits.h> and <float.h> contain symbolic constants for all of these sizes
No comments:
Post a Comment