TOKENS
1. Keywords
2. Identifier
3. Constant
4. Strings
5. Operators
6. Punctuators
KEYWORDS
Keywords are the reserved words or pre-defined words whose meaning is already known to the compiler. Each keyword perform a particular task.
32 keywords defined by C89
Examples : int, float, void, etc.
IDENTIFIER
In C language identifiers are the name given to variables, constants, functions and user-defined data. it's like names to call something.
Examples : int a, float b, etc.
CONSTANTS
Constants are those quantities whose value are fixed and can not be changed.
Examples : 1, 2;
const int a = 5 etc.
STRINGS
The string in C programming language is actually a one-dimensional array of characters which is terminated by a null character '\0' . a group of letters is called a string.
Examples : char text[] = "Hello";
OPERATORS
An operator is a symbol that tells the compiler to perform specific mathematical or logical operation.
Examples : +, -, &&, etc;
PUNCTUATORS
Punctuators separate two statements. Like ';' describes the end of a statement. They are also known as Deliminter or separators.
Examples : [], (), {}, #etc;
Comments
Post a Comment