There are two types of Identifiers in C. These are:
- Standard Identifier
- User defined Identifier
Like keywords, there are also predefined identifiers in C. The predefined identifiers of the C language that are used for special purposes in the source program are called the standard Identifier. Each identifier has special meanings in C. The names used for standard library functions are standard identifiers.
In C program, the scanf() and printf() functions are mostly used for input or output operations. Therefore, the functions names ''scanf'' or "printf" are examples of standard identifiers.
- User Defined Identifiers:-
The user (or programmer) can define its own identifiers in the C program such as variables, user defined functions, labels etc. The Identifiers defined by the user in the program are called user defined Identifiers. C is a case sensitive language.
The C compiler considers 'Area' and 'area' as two different identifiers.
The unique names used in the program to represent the variables, constants, functions and labels etc. are called Identifiers. You can use any number of characters for the name of an identifier but only the first 31 characters are significant to the C compiler.
There are two types of identifiers in C. These are:
- Standard Identifier
- User-Defined Identifier