Variables are those entities whose value can be changed during the execution of the program.
variable names Variable Invalid reason
N N$ 1 The last character should be $
TOTAL 1 ABC 0 TO 6 First character should be a letter
AS SUM % A - Z Special characters are not allowed
- Any variable name can be of at the most 40 characters in length.
- The first character in the variable name must be a letter.
- The characters allowed are letters, numbers, and the decimal point.
- Reserved words of BASIC can not be used as variable names.
- Variables may represent either numeric values or strings.
Table C 2.9 Variables
Valid invalid varialbe namesvariable names Variable Invalid reason
N N$ 1 The last character should be $
TOTAL 1 ABC 0 TO 6 First character should be a letter
AS SUM % A - Z Special characters are not allowed
No comments:
Post a Comment