Sizes of integral types
This header defines constants with the limits of integral typesfor the specific system and compiler implemetation used.
The following panel shows the different constants and theirguaranteed minimal magnitudes (positive numbers may be greater invalue, and negative numbers may be less in value). Any particularcompiler implementation may define integral types with greatermagnitudes than those shown here:
name | expresses | min. magnitude* |
---|---|---|
CHAR_BIT | Number of bits for a char object (byte) | 8 |
SCHAR_MIN | Minimum value for an object of type signed char | -127 |
SCHAR_MAX | Maximum value for an object of type signed char | 127 |
UCHAR_MAX | Maximum value for an object of type unsigned char | 255 |
CHAR_MIN | Minimum value for an object of type char | either SCHAR_MIN or 0 |
CHAR_MAX | Maximum value for an object of type char | either SCHAR_MAX or UCHAR_MAX |
MB_LEN_MAX | Maximum number of bytes in a multibyte character, for anylocale | 1 |
SHRT_MIN | Minimum value for an object of type short int | -32767 |
SHRT_MAX | Maximum value for an object of type short int | 32767 |
USHRT_MAX | Maximum value for an object of type unsigned shortint | 65535 |
INT_MIN | Minimum value for an object of type int | -32767 |
INT_MAX | Maximum value for an object of type int | 32767 |
UINT_MAX | Maximum value for an object of type unsigned shortint | 65535 |
LONG_MIN | Minimum value for an object of type long int | -2147483647 |
LONG_MAX | Maximum value for an object of type long int | 2147483647 |
ULONG_MAX | Maximum value for an object of type unsigned int | 4294967295 |
* This is not necessarily the actual valueof the constant in any particular compiler or system, it may beequal or greater in magnitude than this.