Skip to content

Commit fdd35d7

Browse files
author
mikeblome
committed
updated for 64-bit
1 parent b32b769 commit fdd35d7

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

docs/c-language/cpp-integer-limits.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
---
2-
title: "C++ Integer Limits"
3-
ms.date: "01/29/2018"
2+
title: "C and C++ Integer Limits"
3+
ms.date: "10/21/2019"
44
helpviewer_keywords: ["limits, integer", "limits, integer constants", "integer limits"]
55
ms.assetid: 0c23cbd6-29fb-4d9c-b689-5984e19748de
66
---
7-
# C++ Integer Limits
7+
# C and C++ Integer Limits
88

99
**Microsoft Specific**
1010

11-
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).
1214

1315
## Limits on Integer Constants
1416

@@ -30,6 +32,9 @@ The limits for integer types are listed in the following table. These limits are
3032
|**LONG_MIN**|Minimum value for a variable of type **long**.|-2147483647 - 1|
3133
|**LONG_MAX**|Maximum value for a variable of type **long**.|2147483647|
3234
|**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)|
3338

3439
If a value exceeds the largest integer representation, the Microsoft compiler generates an error.
3540

0 commit comments

Comments
 (0)