C Tokens - TGN

Latest

Welcome to Technicalgurunow! Your No. 1 source for all networking , earning and programming tutorials. We're dedicated to providing you the best of knowledgeable information with a focus on dependability. We hope you enjoy our blog.

Saturday, November 30, 2019

C Tokens

C Tokens


in that post we learn what is tokens?

In this post we learn, what is tokens in C language?

    • In a C program the smallest individual unit are known as C tokens.
    • Using C tokens we can write 'C' programs.                                                 
    • If we learn how to use tokens in Cprogram, so C language is very easy to use.
    • example:
    • #include<stdio.h>
    • int main()
    • {
    •          printf("Hello World");
    • }
    • In above example int, main() , printf(), are the C tokens.
    • There are six types of tokens in C programming. 
    •  1. keyword  (example : float , int , double etc.)
    •  2. Identifier  (example : main, printf(), etc.)
    • 3. constant (example : - 10.0, 200)
    • 4. special symbol (example : [ ] , { }  etc. )
    • 5. String   (example : "XYZ", "year" etc. )
    • 6.Operator  (example : +, - , *  etc. )                                                          

No comments:

Post a Comment

If you have any query, please let me know

Followers