There are no notfications.

limits.h

The limits.h header provides macros for the limits (ranges) of primitive integral types.

Excluding macros CHAR_BIT and MB_LEN_MAX.

Macros

Signed

SCHAR_MIN
Expands to −128
The minimum value for signed char.
SCHAR_MAX
Expands to 127
The maximum value for signed char.
SHRT_MIN
Expands to −32,768
The minimum value for signed short int.
SHRT_MAX
Expands to 32,767
The maximum value for signed short int.
INT_MIN
Expands to −2,147,483,648
The minimum value for signed int.
INT_MAX
Expands to 2,147,483,647
The maximum value for signed int.
LONG_MIN
Expands to:
  • (x86) −2,147,483,648
  • (x86-64) −9,223,372,036,854,775,808
The minimum value for signed long int.
LONG_MAX
Expands to:
  • (x86) 2,147,483,647
  • (x86-64) 9,223,372,036,854,775,807
The maximum value for signed long int.
LLONG_MIN
Expands to −9,223,372,036,854,775,808
The minimum value for signed long long int.
LLONG_MAX
Expands to 9,223,372,036,854,775,807
The maximum value for signed long long int.

Unsigned

UCHAR_MAX
Expands to 255
The maximum value for unsigned char.
USHRT_MAX
Expands to 65,535
The maximum value for unsigned short int.
UINT_MAX
Expands to 4,294,967,295
The maximum value for unsigned int.
ULONG_MAX
Expands to:
  • (x86) 4,294,967,295
  • (x86-64) 18,446,744,073,709,551,615
The maximum value for unsigned long int.
ULLONG_MAX
Expands to 18,446,744,073,709,551,615
The maximum value for unsigned long long int.

External links