[amp_mcq option1=”is a name of a thing such as variable and function” option2=”is made up of letters, numerals and the underscore” option3=”can contain both uppercase and lowercase letters” option4=”All of the above E. None of the above” correct=”option4″]
The correct answer is D. All of the above.
An identifier in C is a name of a thing such as variable, function, structure, union, or label. It is made up of letters, numerals, and the underscore. It can contain both uppercase and lowercase letters.
Here are some examples of identifiers in C:
xyzabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZ
The first character of an identifier must be a letter or an underscore. The remaining characters can be letters, numerals, or underscores.
Identifiers are case-sensitive. For example, x and X are different identifiers.
Identifiers cannot be keywords. Keywords are reserved words that have special meanings in the C language. For example, int is a keyword that cannot be used as an identifier.