Write the rules for declaring the variables. Explain with examples
Answers
Answered by
5
Rules for naming variables:
- All variable names must begin with a letter of the alphabet or an. underscore( _ ). ...
- After the first initial letter, variable names can also contain letters and numbers. ...
- Uppercase characters are distinct from lowercase characters.
- You cannot use a C++ keyword (reserved word) as a variable name.
Similar questions