1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
| 5.2.4.2.1 Sizes of integer types <limits.h>
[…]
— number of bits for smallest object that is not a bit-field (byte)
CHAR_BIT 8
— minimum value for an object of type signed char
-127 // −(27 − 1)
SCHAR_MIN
— maximum value for an object of type signed char
+127 // 27 − 1
SCHAR_MAX
— maximum value for an object of type unsigned char
255 // 28 − 1
UCHAR_MAX
— minimum value for an object of type char
see below
CHAR_MIN
— maximum value for an object of type char
see below
CHAR_MAX
— maximum number of bytes in a multibyte character, for any supported locale
MB_LEN_MAX 1
— minimum value for an object of type short int
-32767 // −(215 − 1)
SHRT_MIN
— maximum value for an object of type short int
+32767 // 215 − 1
SHRT_MAX
— maximum value for an object of type unsigned short int
65535 // 216 − 1
USHRT_MAX
— minimum value for an object of type int
-32767 // −(215 − 1)
INT_MIN
— maximum value for an object of type int
+32767 // 215 − 1
INT_MAX
— maximum value for an object of type unsigned int
65535 // 216 − 1
UINT_MAX
— minimum value for an object of type long int
-2147483647 // −(231 − 1)
LONG_MIN
— maximum value for an object of type long int
+2147483647 // 231 − 1
LONG_MAX
— maximum value for an object of type unsigned long int
4294967295 // 232 − 1
ULONG_MAX
— minimum value for an object of type long long int
-9223372036854775807 // −(263 − 1)
LLONG_MIN
— maximum value for an object of type long long int
+9223372036854775807 // 263 − 1
LLONG_MAX
— maximum value for an object of type unsigned long long int
18446744073709551615 // 264 − 1
ULLONG_MAX |