HOME LIBRARY C++ PHP JAVA HTML
CSAdeeb

C Tokens

The smallest individual units that are used to write C programs is called C tokens. The Tokens in C language are of six types. They are:

C Tokens

Each of the C tokens is described below.

Keywords

The tokens in C with fixed meaning are called C keywords. The keywords are reserved by the C.

Examples: void, int

Identifiers

Identifiers in C are used to name the variables, functions, and arrays.

Examples: _mark, student

Constants

The Constants in C Program refers to fixed values that do not change during the execution of the program.

Examples: 10.5, -20

Strings

Strings in C are arrays of characters.

Examples: “CSADEEB”, “C program”

Special Symbols

The Special Symbols used in writing C programs are in this category.

Examples: [ , ] , { , }

Operators

The C Operators are the symbols used in the C programming which tells the compiler which operations to be performed on the operands.

Examples: + – * /