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.

nameexpressesvalue*
CHAR_BITNumber of bits for a char object (byte)8 or greater
SCHAR_MINMinimum value for an object of type signed char-127 or less
SCHAR_MAXMaximum value for an object of type signed char127 or more
UCHAR_MAXMaximum value for an object of type unsigned char255 or more
CHAR_MINMinimum value for an object of type chareither SCHAR_MIN or 0
CHAR_MAXMaximum value for an object of type chareither SCHAR_MAX or UCHAR_MAX
MB_LEN_MAXMaximum number of bytes in a multibyte character, for any locale1 or greater
SHRT_MINMinimum value for an object of type short int-32767 or less
SHRT_MAXMaximum value for an object of type short int32767 or greater
USHRT_MAXMaximum value for an object of type unsigned short int65535 or greater
INT_MINMinimum value for an object of type int-32767 or less
INT_MAXMaximum value for an object of type int32767 or greater
UINT_MAXMaximum value for an object of type unsigned int65535 or greater
LONG_MINMinimum value for an object of type long int-2147483647 or less
LONG_MAXMaximum value for an object of type long int2147483647 or greater
ULONG_MAXMaximum value for an object of type unsigned long int4294967295 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