1.

The following are some invalid identifiers. Specify its reason. 1. Sum of digits 2. 1 year 3. First jan 4. For

Answer»

1. Sum of digits → space not allowed hence it is invalid

2. 1 year → First character must be an alphabet hence it is invalid 

3. First.jan → special characters such as dot (.) not allowed hence it is invalid. 

4. For → It is valid. That is it is not the keyword for



Discussion

No Comment Found

Related InterviewSolutions