what are the rules for naming variables ?
Answers
Answered by
6
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.
PLEASE MARK ME AS BRAINLIST.........
Answered by
4
Answer:
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.
Hope you are satisfied..
please mark me as the BRAINLIEST
Similar questions