C Programming Tokens

C Programming Tokens?

Tokens are also called as Basic Building Block(BBB) of language so if you want to learn any language the first task is to cover the tokens first. Following are the C programming tokens:

  • Keywords
  • Identifiers
  • Constant or Literals
  • Operators
  • Character Set
  • Special Symbols

1. Keywords
keywords are the predefined words for the compiler. There are 32 keywords in C programming as follows:



2. Identifiers
Name given to any programming element such as a variable name or a function name by the user
int number; int arr[10];
float digit; struct student{};

3. Constant or the Literals
Constants are the values that are stored in the variable. For example:
a=10
in this statement a is a variable that holds the constant value 10.
There are 2 types of constant
  • Numeric (int & float)
  • Non- Numeric (character & strings)
4. Character Set 
A character set is a list of permissible characters in the language. Every language has its own character set to write the statements. Following is the character set of the C programming language.
  • A to Z
  • a to z
  • 0 to 9
5. Special Symbols
following are the special symbols used in c programming for various reasons:
  • { } for scope
  • [ ] for array
  • * & for pointer
  • ( ) for functions
6. C programming Operators
There is a wide range of operators available in C programming the list is as follows:
  • Arithmetic
  • Relational 
  • Logical
  • Increment & Decrement
  • Assignment
  • Bitwise Operator
  • Logical Operator
We will discuss every operator in detail.


No comments:

Post a Comment