answersLogoWhite

0

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.

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

ProfessorProfessor
I will give you the most educated answer.
Chat with Professor
ReneRene
Change my mind. I dare you.
Chat with Rene
JudyJudy
Simplicity is my specialty.
Chat with Judy

Add your answer:

Earn +20 pts
Q: Can identifier be any sequence of digits and letters?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What are the rules of creating identifier?

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.


Is it any valid printable ascii character can be used inan identifier?

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.


What are the various rules for writing an identifier name in C language?

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.


Why keyword cannot be used as an identifier in c language?

It's by design; this way the lexical parser is able to decide that any given string is a keyword or an identifier.


Differentiate keywords and identifiers in C programming?

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.