C Identifiers

C Identifiers

Identifiers are name which are given by user for variables, functions, array, structures, unions, etc. There are some rules which need to be followed in order to create valid identifiers. These rules are given below:

C Identifiers

Rules for Valid Identifiers

  • Starting character of an identifier should be either an alphabet or an underscore, and then it can be followed by any of the character, digit, or underscore.
  • Identifiers can not begin with any numerical digit.
  • Identifiers are case sensitive(meaning uppercase and lowecase are different).
  • Identifiers don't have commas or blank spaces.
  • Length of the identifier cannot be more than 31 characters.

Valid Identifiers

total, avg1, difference_1, _crackexams99;

Invalid Identifiers

8total, crack exams99;

Load comments