C programming identifier
In this chapter, you will learn about identifier and learn the appropriate naming for variables.C identifier
The name used to identify an entity such as variables, functions, structures, etc. is identifiers.
The identifier in C programming must be unique. At the time of execution, the entity is primarily responsible for identifying entity through a unique name. For example:
int money;
double accountBalance;
Here money and accountBalance are identifiers
Remember, the key keywords can not be used to give the name of the identifier.
For example, if you wish, you can not use double as an identifier, because it is the keyword.
Conventions to keep identifier names
A valid identifier may contain alphabet (upper case or lowercase), digits (digit) and underscore (_).
The name of the identifier must start with letters or underscores. But underscores the name of the identifier was disallowed.
The identifier name can be of any length. However, the compiler chose the first 31 letters as identifier names.
Programming in the best way
You can choose any name for the identifier without keywords. However, if you give the credential name to the identifier, it will be easy for you and your fellow programmers to understand.

0 Comments