Tokens in C Programming

Tokens in C Programming

C Tokens are the individual words and punctuation, which is the smallest element of a program, understandable by the compiler. In easier language, C tokens are individual units in a program. In this lesson we will learn about Tokens in C Programming.


Identifiers in C language are used for naming of variables, functions and arrays. Do not use keywords as identifiers.

You cannot use keywords as identifiers; they are reserved for special use.

Here are some examples of valid identifiers,

To name C Identifiers, follow these rules:

  • The identifier must begin with a letter or underscore (_).
  • C identifiers must consist of only letters, digits, or underscore.
  • Do not add any special character to the identifiers.
  • Should not be a keyword.
  • It should not contain any white space.


Keywords are reserved words used in programming languages. The compiler already knows these names, so you cannot use them as variable names,

Total 32 keywords are part of C language, which are known to the C compiler.

Here is a list,


White space in C language include vertical tab, horizontal tab, blank, comments, form feed, end-of-line, etc. A line with a whitespace isn’t considered by the compiler. You can add a comment there itself as shown below,

Use whitespace to separate part of statements, for example,

C First Program
Variables in C Programming
Studyopedia Editorial Staff
Studyopedia Editorial Staff

We work to create free tutorials for all.

No Comments

Post A Comment