If you mean a variable name, then no -- it must begin with a letter or an underscore, but any combination of letters, digits and underscores may follow.
If you mean a variable that stores an identifier, then yes -- so long as the identifier is a string type.
Chat with our AI personalities
Identifiers refers to the names of variables, functions and array. These are user defined names and consist of a sequence of letters and digits, with a letters as a first character.Both uppercase and lowercase letters are permitted, although lowercase letters are commonly used. The underscore character is also permitted in identifiers. It is usually used as a link between two words in long identifiers. In C, identifiers may contain any alphanumeric characters (a-z, A-Z, 0-9) as well as underscores (_), but must not begin with a number.
In programming languages, identifiers are used to name variables, functions, etc. In most languages, identifiers must start with a letter (uppercase or lowercase) or an underscore, followed by letters, digits, or underscores. Therefore, not all printable ASCII characters can be used in an identifier. Symbols such as @, #, $, and % are typically not allowed in identifiers.
An identifier starts with one of [_, a-z, A-Z] and may continue with one or more of [_, a-z, A-Z, 0-9]. There are often length limitations as well as limitations involving leading underscores, [_], and identifiers may not exactly match any reserved word.
It's by design; this way the lexical parser is able to decide that any given string is a keyword or an identifier.
keywords:- every word in a c program is either a keyword or an identifier. All keywords are basically the sequences of characters that have one or fixed meanings. And these meanings in any circumtances , can't be changed. All c keywords must be written in lowercase (small) letters. eg:- auto, break ,case, char, const, do, if ,double, else .....etc identifiers:- identifiers r names given to program elements such as variables , arrays & functions. Basically identifers r the sequences of alphabets or digits. Rules for forming identifier name * the first character must be analphabet (uppercase or lowercase) or an underscore * all succeeding characters must be letters or digits. * no special characters or punctuatio symbols are allowed except the underscore"_". * no two successive underscores are allowed. * keywords shouln't be used as identifiers.