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: courses/intro/03-datatypes/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,6 +146,7 @@ We are going to cover this again when covering [pointers and functions](../06-fu
146
146
## Variable Naming
147
147
148
148
Variable names are called identifiers. In C++, you can use any combination of letters, digits, and underscores to name a variable, it should follow some rules:
149
+
149
150
- Variables can have numbers, en any position, except the first character, so the name does not begin with a digit. Ex. `point2` and `vector2d` are allowed, but `9life` isn't;
150
151
- Variable names are case-sensitive, so "myVar" and "myvar" are considered to be different variables;
151
152
- Can have `_` in any position of the identifier. Ex. `_myname` and `user_name` are allowed;
0 commit comments