Which of the following are valid identifiers and why/why not:
(i) Myfile (ii) 29CLCT (iii) DATE9_7_77
(iv) break (v) $1_to_$10
Answers
Answered by
1
Answer:-
(i) Myfile
(ii) DATE9_7_77
(i) 29CLCT
must not begin with a digit.
(ii) break
A keyword cannot be used as an identifier.
(iii) $1_to_$10
Only special character allowed is undercore ; $ not allowed.
✨
Similar questions
Science,
27 days ago
Math,
27 days ago
Sociology,
1 month ago
Social Sciences,
8 months ago
Math,
8 months ago