C Identifiers
Definition:
Identifiers are sequences of characters used for naming variables, functions, new data types, and preprocessor macros.
Rules:
- Identifier can be include letters uppercase(A-Z) and lowercase(a-z)
- Identifier can be decimal digits(0-9).
- The first character of an identifier cannot be a digit.
- You Can Include underscore character ?_? in identifiers.The first character of an identifier cannot be an underscore(Some Compilers Accept underscore as a first Character).
- Lowercase letters and uppercase letters are distinct, such that foo and FOO are two different identifiers.
- When using GNU extensions, you can also include the dollar sign character ?$? in identifiers.
Syntax
data_type name_of_identifeir // Variable name
data_type name_of_function(......) // function name
Identifiers Example
// Variable
int amount;
char name[20];
// Function
void calculation(int a,int b){
}
Read More Articles
- Use of getch(),getche() and getchar() in C
- Switch Case Statement Example Program In C Programming Language
- C Character Set
- Convert a Floating-point value to an Integer in C
- Data Input and Output gets and puts Example Program In C
- Special Operators In C
- Pointer Representation and Pointer Example Programs
- C Data Input and Data Output
- Simple While Loop Example Program In C Programming Language
- Data Output printf and putchar Example Program In C
- C Introduction
- C Operators
- Storage Classes In C
- C Pointers
- File Management
- C Identifiers
- Loop Control Statements
- Hello World - Simple C Program
- C Array
- Single Character Output Function : putchar()
- C Reserve Words
- C Specific Properties and Implementation
- If else Statement Example Program In C Programming Language
- If Statement Example Program In C Programming Language
- Confusing Array in C ( Array Representation and Initialization )