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
The limits for integer types are listed in the following table. These limits are defined in the standard header file LIMITS.H. Microsoft C also permits the declaration of sized integer variables, which are integral types of size 8-, 16-, or 32-bits. For more information on sized integers, see [Sized Integer Types](../c-language/c-sized-integer-types.md).
11
+
The limits for integer types in C and C++ are listed in the following table. These limits are defined in the C standard header file `<limits.h>`. The C++ Standard Library header `<limits>` includes `<climits>`, which includes `<limits.h>`.
12
+
13
+
Microsoft C also permits the declaration of sized integer variables, which are integral types of size 8-, 16-, 32- or 64-bits. For more information on sized integers in C, see [Sized Integer Types](../c-language/c-sized-integer-types.md).
12
14
13
15
## Limits on Integer Constants
14
16
@@ -30,6 +32,9 @@ The limits for integer types are listed in the following table. These limits are
30
32
|**LONG_MIN**|Minimum value for a variable of type **long**.|-2147483647 - 1|
31
33
|**LONG_MAX**|Maximum value for a variable of type **long**.|2147483647|
32
34
|**ULONG_MAX**|Maximum value for a variable of type **unsigned long**.|4294967295 (0xffffffff)|
35
+
|**LLONG_MIN**|Minimum value for a variable of type **long long**.|-9,223,372,036,854,775,807 - 1|
36
+
|**LLONG_MAX**|Maximum value for a variable of type **long long**.|9,223,372,036,854,775,807|
37
+
|**ULLONG_MAX**|Maximum value for a variable of type **unsigned long long**.|18,446,744,073,709,551,615 (0xffffffffffffffff)|
33
38
34
39
If a value exceeds the largest integer representation, the Microsoft compiler generates an error.
0 commit comments