Computer Science, asked by lakshay443642, 3 months ago

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 harshvirsing55
1

Answer:-

\red{\fbox{\tt Valid Identifiers}}

(i)  Myfile

(ii) DATE9_7_77

\blue{\fbox{\tt Invalid Identifiers}}

(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.

\orange{\tt Hope it will} \green{\tt help you.} ✨​

Similar questions