Which of the following is not a valid variable name?
var-1
var1
Var1
var 1
Answers
Answered by
0
Answer:
var 1
Explanation:
Their should not be any whitespace in the variable declared.
Answered by
0
From the given following var 1 is not a valid variable name.(Last Option)
- In C, variables are the same as variables in algebra. In C, a variable is a storage unit that allocates memory space to keep a value and can take on different values at different moments during program execution.
- Letters, numerals, and the underscore (_) characters can all be used in a variable name. But obviously, there shouldn't any spaces between the letter and number. A letter must be the first character in a variable name. Some systems permit the use of an underscore as the initial character in the variable name.
- Here for only last option, there is a space between "var" and "1".
Similar questions