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
Copy file name to clipboardExpand all lines: docs/cpp/cpp-type-system-modern-cpp.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ Any built-in or user-defined type may be qualified by the const keyword. Additio
80
80
```cpp
81
81
82
82
constdouble PI = 3.1415;
83
-
PI = .75//Error. Cannot modify const variable.
83
+
PI = .75;//Error. Cannot modify const variable.
84
84
```
85
85
86
86
The **`const`** qualifier is used extensively in function and variable declarations and "const correctness" is an important concept in C++; essentially it means to use **`const`** to guarantee, at compile time, that values are not modified unintentionally. For more information, see [`const`](../cpp/const-cpp.md).
0 commit comments