Warning 2.6.1.
If you type a variable name and it turns blue, watch out! You might get some strange behavior from the compiler.
int
, char
, void
, endl
and many more.
en.cppreference.com/w/cpp/keyword
string
variable String
without an issue because C++ does not consider String
to be the same as keyword string
. Also, a anything written in quotes, for example "string"
is not considered a keyword in C++, even if it is spelt the same.