Skip to content

Commit 6912b73

Browse files
authored
Merge pull request MicrosoftDocs#2427 from mikeblome/mb-64
updated integer topic for 64-bit
2 parents f76ed24 + 0b0980b commit 6912b73

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

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

docs/c-language/elements-of-c.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The following topics are discussed:
2626

2727
- [Punctuation and special characters](../c-language/punctuation-and-special-characters.md)
2828

29-
The section also includes reference tables for [Trigraphs](../c-language/trigraphs.md), [Limits on Floating-Point Constants](../c-language/limits-on-floating-point-constants.md), [C++ Integer Limits](../c-language/cpp-integer-limits.md), and [Escape Sequences](../c-language/escape-sequences.md).
29+
The section also includes reference tables for [Trigraphs](../c-language/trigraphs.md), [Limits on Floating-Point Constants](../c-language/limits-on-floating-point-constants.md), [C and C++ Integer Limits](../c-language/cpp-integer-limits.md), and [Escape Sequences](../c-language/escape-sequences.md).
3030

3131
Operators are symbols (both single characters and character combinations) that specify how values are to be manipulated. Each symbol is interpreted as a single unit, called a token. For more information, see [Operators](../c-language/c-operators.md).
3232

docs/c-language/type-int.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The type specifiers `int` and `unsigned int` (or simply `unsigned`) define certa
1212

1313
**Microsoft Specific**
1414

15-
Signed integers are represented in two's-complement form. The most-significant bit holds the sign: 1 for negative, 0 for positive and zero. The range of values is given in [C++ Integer Limits](../c-language/cpp-integer-limits.md), which is taken from the LIMITS.H header file.
15+
Signed integers are represented in two's-complement form. The most-significant bit holds the sign: 1 for negative, 0 for positive and zero. The range of values is given in [C and C++ Integer Limits](../c-language/cpp-integer-limits.md), which is taken from the LIMITS.H header file.
1616

1717
**END Microsoft Specific**
1818

docs/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2969,7 +2969,7 @@
29692969
href: c-language/c-integer-constants.md
29702970
- name: Integer types
29712971
href: c-language/integer-types.md
2972-
- name: C++ integer limits
2972+
- name: C and C++ integer limits
29732973
href: c-language/cpp-integer-limits.md
29742974
- name: C character constants
29752975
expanded: false

0 commit comments

Comments
 (0)