top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the meaning of token and what are various types of tokens in C?

+1 vote
196 views
What is the meaning of token and what are various types of tokens in C?
posted Jan 9, 2015 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

tokens are the basic buildings blocks which are constructed together to write a program. In context of C each and every smallest individual units in a C program are known as C tokens.

C Language has six types of tokens -

  1. Keywords (Ex: for, while),
  2. Identifiers (Ex: functionname, variablename),
  3. Constants (Ex: 5, 10)
  4. Strings (Ex: “QueryHome”),
  5. Special symbols (Ex: (), {}),
  6. Operators (Ex: +, /,-,*)
answer Jan 9, 2015 by Salil Agrawal
Similar Questions
+2 votes
+3 votes
#include <stdio.h>
int main()
{
    char vowels[5]={'a','e','i','o','u'};
    int x;

    printf("Vowel Letters");
    for(x=0;x<=5;x++)
    {
         printf("\n %C",vowels[x]);
    }
}

Output

Vowel Letters
a
e
i
o
u
♣
Process exited after 0.1132 seconds with return value 3

What is the meaning of return value 3

...