Skip to content

Commit 313d302

Browse files
authored
correction in variable declartion (#5160)
`int i;` is a definition of the object, since it will allocate storage.
1 parent 8d4963e commit 313d302

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/cpp/program-and-linkage-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ In a C++ program, a *symbol*, for example a variable or function name, can be de
1111
The following example shows some declarations:
1212

1313
```cpp
14-
int i;
14+
extern int i;
1515
int f(int x);
1616
class C;
1717
```

0 commit comments

Comments
 (0)