8.3.2 limits.h

The limits.h header file defines the ranges of values which can be represented by the integer types.

Table 8-1. LIMITS.H HEADER FILE
Macro NameValueDescription
CHAR_BIT8The size, in bits, of the smallest non-bit field object.
SCHAR_MIN-128The minimum value possible for an object of type signed char.
SCHAR_MAX127The maximum value possible for an object of type signed char.
UCHAR_MAX255The maximum value possible for an object of type unsigned char.
CHAR_MIN-128 (or 0, see Signed and Unsigned Character Types)The minimum value possible for an object of type char.
CHAR_MAX127 (or 255, see Signed and Unsigned Character Types)The maximum value possible for an object of type char.
MB_LEN_MAX16The maximum length of multibyte character in any locale.
SHRT_MIN-32768The minimum value possible for an object of type short int.
SHRT_MAX32767The maximum value possible for an object of type short int.
USHRT_MAX65535The maximum value possible for an object of type unsigned short int.
INT_MIN-231The minimum value possible for an object of type int.
INT_MAX231-1The maximum value possible for an object of type int.
UINT_MAX232-1The maximum value possible for an object of type unsigned int.
LONG_MIN-231The minimum value possible for an object of type long.
LONG_MAX231-1The maximum value possible for an object of type long.
ULONG_MAX232-1The maximum value possible for an object of type unsigned long.
LLONG_MIN-263The minimum value possible for an object of type long long.
LLONG_MAX263-1The maximum value possible for an object of type long long.
ULLONG_MAX264-1The maximum value possible for an object of type unsigned long long.