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 forsigned char
. SCHAR_MAX
- Expands to 127
The maximum value forsigned char
. SHRT_MIN
- Expands to −32,768
The minimum value forsigned short int
. SHRT_MAX
- Expands to 32,767
The maximum value forsigned short int
. INT_MIN
- Expands to −2,147,483,648
The minimum value forsigned int
. INT_MAX
- Expands to 2,147,483,647
The maximum value forsigned int
. LONG_MIN
- Expands to:
- (x86) −2,147,483,648
- (x86-64) −9,223,372,036,854,775,808
signed long int
. LONG_MAX
- Expands to:
- (x86) 2,147,483,647
- (x86-64) 9,223,372,036,854,775,807
signed long int
. LLONG_MIN
- Expands to −9,223,372,036,854,775,808
The minimum value forsigned long long int
. LLONG_MAX
- Expands to 9,223,372,036,854,775,807
The maximum value forsigned long long int
.
Unsigned
UCHAR_MAX
- Expands to 255
The maximum value forunsigned char
. USHRT_MAX
- Expands to 65,535
The maximum value forunsigned short int
. UINT_MAX
- Expands to 4,294,967,295
The maximum value forunsigned int
. ULONG_MAX
- Expands to:
- (x86) 4,294,967,295
- (x86-64) 18,446,744,073,709,551,615
unsigned long int
. ULLONG_MAX
- Expands to 18,446,744,073,709,551,615
The maximum value forunsigned long long int
.