What is token in C Programming | Allinonetuts

What is token in C Programming

C Tokens:

The basic and smallest unit of a C program is called C tokens.

There are six types of token in C.

  1. Keywords: Keywords are special words that are used to give a special meaning to the program and can’t be used as variable and constant. They are basically a sequence of characters that have fixed to mean for example break, for, while, do-while, do, if, int, long, char.
  2. Identifiers: Identifiers are the sequence of alphabets and digit, but keyword should not be used as an identifier.
  3. Constants: The quantity which does not change during the execution of a program is known as constant. There are types of constant.
    constant in c programming | Allinonetuts
  4. Variables: Variables are used to give the name and allocate memory space. An entity that may vary data during execution. For example, sum, area, a, b, age, city.
  5. String: String is a collection of more than one character. For example, “RAM”, “Meerut”, “Star” String is represented by a pair of double quotes.
  6. Operators: Operators acts as connectors and they indicate what type of operation is being carried out. The values that can be operated by these operators are called operands. They are used to perform basic operations, comparison, manipulation of bits and so on.

    operators in c programming | AllinonetutsTo Learn More: About Operators in C Programming

Hello Viewers,
welcome to the Allinonetuts a Technical tutorial and Programming Blog Maintained by Vikas Kardam, a Web Developer and Blogger From Delhi, India.
What is token in C Programming was last modified: June 23rd, 2017 by Vikas Kardam

Leave a Reply

Your email address will not be published. Required fields are marked *