Computer Science, asked by Darakhshanzehra1903, 8 months ago

Which one of the following is valid Identifier Var1 1Var Var 1 Var@1 Var_1 WHY?? REASONS PLEASE

Answers

Answered by Rahul9048
1

Answer:

An Identifier can only have alphanumeric characters(a-z , A-Z , 0-9) and underscore( _ ). The first character of an identifier can only contain alphabet(a-z , A-Z) or underscore ( _ ). Identifiers are also case sensitive in C. For example name and Name are two different identifiers in C.

A valid identifier can have letters (both uppercase and lowercase letters), digits and underscores. The first letter of an identifier should be either a letter or an underscore.  There is no rule on how long an identifier can be.

Explanation:

Similar questions