Tokens in C- Language

 


  • Tokens is the smallest unit in C-Program.
  • It is each and every word and punctuation that you come across in your C-Program.
C- Tokens are divided into six different types:-
  1. Keywords:-   Keywords are reserved words that have special meaning in the language, such as int, while, and for.
  2. Identifiers:-  Identifiers are names given to variables, functions, and other objects.
  3. Strings :-  Strings in C language are sequences of characters enclosed in double quotes (").
  4. Constants:-  Constants are fixed values that cannot be changed.
  5. Operators:-  Operators are symbols that are used to perform operations on variables, such as +, -, and *.
  6. Special Characters:-  Special characters in C language include the backslash (\), the ampersand (&), the asterisk (*), the pound sign (#), and the tilde (~), semicolons (;), commas (,), parentheses (( )), braces ({ }), and brackets ([]).



Comments

Popular Posts