Computer Science, asked by rs5155024, 1 month ago

2. Which of the following variable names are invalid? Justify.
(a) try
(b) 123 Hello
(c) sum
(d) abc@123​

Answers

Answered by sheethalsriramp7ty04
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