C-C++ Rules for naming a variable
-
The variable name shall not be more than 30 characters. Some compilers might throw some errors.
-
The variable name can only contain alphanumerical characters and underscores.
-
The first letter of the variable cannot be a digit. It should either be an alphanumerical character or an underscore.
-
You cannot use a C - Reserved keywords as variable names.