Variable is a data whose value is change during execution of program.Variable is an identifier or name. Variable is used to store any value. During the execution of program value of variable may be different.
Rules to define a variable name:
- Variable is combination of alphabet , Numbers and Special symbol.
- Name of variable must start with alphabet.
- Maximum 8 alphabets can be used in variable name.
- No blank space is used in between two characters.
- Can not define two variables of same name in a program.
- Keywords can not be used as variable name.
No comments:
Post a Comment