Tokens, Semicolon, Comments, Identifiers, Keywords, White space
Basic Terms of C Programming
Tokens in C:
A C program consists of various tokens and a token is either a keyword , an identifier, a constant, a string literal, or a symbol.
for ex.: The following C statement consist of 5 tokens:
The including tokens are:
- “hello world”
It is used to terminate statement.It indicate the end of 1 logical entity.
Comments are like helping text in your C program and they are ignored by compiler.
/*my first program in C*/
A C identifiers is a name used to identify a variable, function, or any other user-defined item. An identifiers start with a letter A to Z, a t z, an underscore and digits (0 to 9).
C does not allow punctuation characters, such as @,$ and % within identifiers. C is case-sensitive programming language.
example:- mohd, zara, abc, move_name, a_123, _temp, j, a23b9.
keywords are the reserved word may not be used as constants or variables or any other identifiers name. There are 32 keywords in C.
example:- auto if else if for do else case break while switch etc……
A line containing only white-space, possibly with a comment, is known as blank line and a compiler totally ignore it.