2. Which of the following variable names are invalid? Justify.
(a) try
(b) 123 Hello
(c) sum
(d) abc@123
Answers
Answered by
0
Answer:
The following are invalid:-
Explanation:
(a) try : is a keyword can’t be used as an identifier.
(b) 123 Hello : Variable names can’t start with a digit.
(c) abc@123 : Special characters aren’t allowed in variable names.
Hope this helps you!!!!
Similar questions