You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Data type constants are implementation-dependent ranges of values allowed for integral data types. The constants listed below give the ranges for the integral data types and are defined in LIMITS.H.
Note
The /J compiler option changes the default char type to unsigned.
Constant
Value
Meaning
SCHAR_MAX
127
Maximum signed char value
SCHAR_MIN
-128
Minimum signed char value
UCHAR_MAX
255 (0xff)
Maximum unsigned char value
CHAR_BIT
8
Number of bits in a char
USHRT_MAX
65535 (0xffff)
Maximum unsigned short value
SHRT_MAX
32767
Maximum (signed) short value
SHRT_MIN
-32768
Minimum (signed) short value
UINT_MAX
4294967295 (0xffffffff)
Maximum unsigned int value
ULONG_MAX
4294967295 (0xffffffff)
Maximum unsigned long value
INT_MAX
2147483647
Maximum (signed) int value
INT_MIN
-2147483647-1
Minimum (signed) int value
LONG_MAX
2147483647
Maximum (signed) long value
LONG_MIN
-2147483647-1
Minimum (signed) long value
CHAR_MAX
127 (255 if /J option used)
Maximum char value
CHAR_MIN
-128 (0 if /J option used)
Minimum char value
MB_LEN_MAX
2
Maximum number of bytes in multibyte char
_I64_MAX
9223372036854775807
Maximum (signed) __int64 value
_I64_MIN
-9223372036854775807-1
Minimum (signed) __int64 value
_UI64_MAX
0xffffffffffffffff
Maximum (unsigned) __int64 value
The following constants give the range and other characteristics of the double and float data types, and are defined in FLOAT.H: