3. What is variable? What are the rules followed for naming a variable?
Answers
Answered by
4
Answer:
The rules and conventions for naming your variables can be summarized as follows: Variable names are case-sensitive. A variable's name can be any legal identifier — an unlimited-length sequence of Unicode letters and digits, beginning with a letter, the dollar sign " $ ", or the underscore character " _ "
Answered by
1
A variable is a named memory location, which contains a value. It's value depends upon the circumstances and problems in a program.
The rules for naming a variable is as follows :-
- A variable may have any number of characters.
- It may contain alphabets, digits and underscore.
- The underscore can be applied in between the characters to increase the length of a variable name.
- Variable names should be meaningful which easily depicts the logic.
Similar questions
Science,
2 months ago
Biology,
2 months ago
Social Sciences,
2 months ago
Math,
5 months ago
Math,
5 months ago
World Languages,
11 months ago
Math,
11 months ago
Chemistry,
11 months ago