Token in C Programming : Basic Building Block in C



C Tokens Chart

  • In C Programming punctuation,individual words,characters etc are called tokens.
  • Tokens are basic building blocks of C Programming

Tokens in C Programming - Basic Building Blocks

Example :

NoToken TypeExample 1Example 2
1Keyworddowhile
2Constantsnumbersum
3Identifier-7689
4StringHTF”PRIT”
5Special Symbol*@
6Operators++/

Basic Building Blocks and Definition :

TokenMeaning
KeywordA variable is a meaningful name of data storage location in computer memory. When using a variable you refer to memory address of computer
ConstantConstants are expressions with a fixed value
IdentifierThe term identifier is usually used for variable names
StringSequence of characters
Special SymbolSymbols other than the Alphabets and Digits and white-spaces
OperatorsA symbol that represent a specific mathematical or non mathematical action