header
<climits> (limits.h)
Sizes of integral types
This header defines constants with the limits of integral types for the specific system and compiler implementation used.
| name | expresses | value* |
| CHAR_BIT | Number of bits for a char object (byte) | 8 or greater |
| SCHAR_MIN | Minimum value for an object of type signed char | -127 or less |
| SCHAR_MAX | Maximum value for an object of type signed char | 127 or more |
| UCHAR_MAX | Maximum value for an object of type unsigned char | 255 or more |
| 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 any locale | 1 or greater |
| SHRT_MIN | Minimum value for an object of type short int | -32767 or less |
| SHRT_MAX | Maximum value for an object of type short int | 32767 or greater |
| USHRT_MAX | Maximum value for an object of type unsigned short int | 65535 or greater |
| INT_MIN | Minimum value for an object of type int | -32767 or less |
| INT_MAX | Maximum value for an object of type int | 32767 or greater |
| UINT_MAX | Maximum value for an object of type unsigned int | 65535 or greater |
| LONG_MIN | Minimum value for an object of type long int | -2147483647 or less |
| LONG_MAX | Maximum value for an object of type long int | 2147483647 or greater |
| ULONG_MAX | Maximum value for an object of type unsigned long int | 4294967295 or greater |
* the actual value depends on the particular system and library implementation, but shall reflect the limits of these types in the target platform.
See also
- <cfloat> (float.h)
- Characteristics of floating-point types (header)