As you have seen the basic Structure of C language, so this will be easy to understand other basic building blocks of C language like Syntax Of C.
Tokens in C
C program consist of many Tokens & a Token can either a Keyword, an identifier, a constant, a string literal or a symbol.
For Example the following statements consist of 5 Tokens:
The individual Tokens are:
In C Program, Semicolon is a statement Terminator & each individual statement must be ended with a semicolon.
Given Below are the Two different Statements:
Comments are helping Text in C Program & they are ignored by Compiler. They starts with /* & ends with */ these Characters.
As shown Below:
An identifier in C is a name which is used to identify a variable, function or any other user-identified item. An identifier starts with a letter A to Z, a to z or an underscore ‘_’ followed by zero or more letters, underscores or digits (0 to 9).
C does not allow Characters like @, $ and % within Identifiers. It is a Case-Sensitive Language. Therefore, Manpower & manpower are two different Identifiers in C.
Here are some examples of identifiers:
Reserved Words may not be used as Constant, Variable or any Identifiers Names. Some Reserved words are shown in the following List:
That is the Syntax Of C, so now we will move to next chapter.
Subscribe Our channels: