list the rules to declare a variable ?
Answers
Answer:
Step 1 − All identifiers should begin with a letter (A to Z or a to z), currency character ($) or an underscore (_).
Step 2 − After the first character, identifiers can have any combination of characters.
Step 3 − A keyword cannot be used as an identifier.
Step 4 − Most importantly, identifiers are case sensitive.
Step 5 − Examples of legal identifiers: age, $salary, _value, __1_value.
Step 6 − Examples of illegal identifiers: 123abc, -salary.
1. Name your variables based on the terms of the subject area, so that the variable name clearly describes its purpose.
2. Create variable names by deleting spaces that separate the words. Capitalize each word in the name, including prepositions and pronouns that consist of a single letter.
3. Do not begin variable names with an underscore.
4. Do not use variable names that consist of a single character. Short variable names are only allowed for loop counters.
5. Name variables that describe binary states ("true" or "false") after the state that matches the "true" values.
hope its help you
....
(please mark as brainliest)