Escolar Documentos
Profissional Documentos
Cultura Documentos
1 Keyword do while
3 Identifier -76 89
Special
5 * @
Symbol
6 Operators ++ /
Basic Building Blocks and Definition :
Token Meaning
Constant Constants are expressions with a fixed value eg. 25, -12.3
The term identifier is usually used for variable names , functions and
Identifier
arrays. Eg. Amount, main
String Sequence of characters eg. “abc” , “hello”
Special Symbol Symbols other than the Alphabets and Digits and white-spaces eg. {}, []
CONSTANTS
NUMERIC CHARACTER
CONSTANTS CONSTANTS
REAL CONSTANTS
INTEGER SINGLE CHARACTER STRING
OR FLOATING
CONSTANTS CONSTANTS CONSTANTS
POINT CONSTANT
INTEGER
CONSTANT
DECIMAL OCTAL
HEXA DECIMAL
INTEGER eg. INTEGER
INTEGER eg.
123, - eg.037,0,0435,
0x2,0x9F
321,0,+78 0551
REAL OR
FLOATING
POINT
CONSTANT
#include<stdio.h>
#include?<conio.h>
void main()
{
printf("Hello\t");
printf(“how are you”);
getch();
}
Variable
Characters Allowed :
Underscore(_)
Capital Letters ( A – Z )
Small Letters ( a – z )
Digits ( 0 – 9 )
DATA TYPES IN C
USER
PRIMARY OR DERIVED
DEFINED
FUNDAMENTAL DATA TYPE
DATA TYPE
PRIMARY DATA TYPE
INTEGER
SIGNED UNSIGNED CHARACTER