C++ 07 Identifiers
C++ 07 Identifiers
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
Ads by
Stop seeing this ad Why this ad?
C++ Identifiers
❮ Previous Next ❯
C++ Identifiers
All C++ variables must be identified with unique names.
Identifiers can be short names (like x and y) or more descriptive names (age, sum,
totalVolume).
Example
// Good
int minutesPerHour = 60;
Try it Yourself »
https://www.w3schools.com/cpp/cpp_variables_identifiers.asp 1/4
1/28/24, 9:49 PM C++ Identifiers
ADVERTISEMENT
Ads by
https://www.w3schools.com/cpp/cpp_variables_identifiers.asp 2/4
1/28/24, 9:49 PM C++ Identifiers
HTML
CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C
COLOR PICKER
ADVERTISEMENT ADVERTISEMENT
https://www.w3schools.com/cpp/cpp_variables_identifiers.asp 3/4
1/28/24, 9:49 PM C++ Identifiers
How To Tutorial SQL Reference
SQL Tutorial
Tutorials Exercises
Python Tutorial
W3.CSS Tutorial
Services Python Reference
W3.CSS Reference
Bootstrap Reference
Sign Up Log in
HTML
CSS Bootstrap Tutorial
JAVASCRIPT SQL PYTHON PHP ReferencePHP
JAVA HOW TO W3.CSS C
PHP Tutorial HTML Colors
Java Tutorial Java Reference
C++ Tutorial Angular Reference
jQuery Tutorial jQuery Reference
FORUM ABOUT
W3Schools is optimized for learning and training. Examples might be simplified to
improve reading and learning.
Tutorials, references, and examples are constantly reviewed to avoid errors, but we
cannot warrant full correctness
of all content. While using W3Schools, you agree to have read and accepted our terms of
use, cookie and privacy policy.
https://www.w3schools.com/cpp/cpp_variables_identifiers.asp 4/4