Getting Started With C

Keywords and Identifiers:

keyword

C Identifiers

Rules for naming identifiers

  1. A valid identifier can have letters (both uppercase and lowercase letters), digits and underscores
  2. The first letter of an identifier should be either a letter or an underscore.
  3. You cannot use keywords like int, while etc. as identifiers
  4. There is no rule on how long an identifier can be. However, you may run into problems in some compilers if the identifier is longer than 31 characters.
Keywords and identifiers

Resources :

Test Your Knowledge
Choose The

With supporting text below as a natural lead-in to additional content.

Q1. A variable name can have ?

Q2. Which pair of symbols is used to define the scope of functions, loops, and other code blocks in C?