New
C 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.
- 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