We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 945ec0d + 15007ce commit aeec1c4Copy full SHA for aeec1c4
docs/cpp/const-cpp.md
@@ -1,7 +1,7 @@
1
---
2
description: "Learn more about: const (C++)"
3
title: "const (C++)"
4
-ms.date: 02/03/2022
+ms.date: 09/27/2022
5
f1_keywords: ["const_cpp"]
6
helpviewer_keywords: ["const keyword [C++]"]
7
ms.assetid: b21c0271-1ad0-40a0-b21c-5e812bba0318
@@ -149,13 +149,13 @@ int main()
149
150
When you declare a variable as **`const`** in a C source code file, you do so as:
151
152
-```cpp
+```C
153
const int i = 2;
154
```
155
156
You can then use this variable in another module as follows:
157
158
159
extern const int i;
160
161
0 commit comments