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:-
- Keywords:- Keywords are reserved words that have special meaning in the language, such as int, while, and for.
- Identifiers:- Identifiers are names given to variables, functions, and other objects.
- Strings :- Strings in C language are sequences of characters enclosed in double quotes (").
- Constants:- Constants are fixed values that cannot be changed.
- Operators:- Operators are symbols that are used to perform operations on variables, such as +, -, and *.
- 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