Showing posts with label Types of Identifiers. Show all posts
Showing posts with label Types of Identifiers. Show all posts

Saturday, 4 August 2012

Types of Identifiers



  • Types of Identifiers:-
                 There are two types of Identifiers in C. These are:
  1. Standard Identifier
  2. User defined Identifier

  • Standard 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.
  • For Example:-
                  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. 
  • For Example:-
                    The C compiler considers 'Area' and 'area' as two different identifiers.