Alphabets. identifiers.
digits. ----> variables. ----> instructions. ----> program. ----> project. (software) symbols. data types.
C character set : The ‘c’ character set consists of Alphabets, digits,
symbols.
Tokens : The tokens consists of
Identifiers , variables, data types.
A token is an small unit of a program. it
consists of a ….
1) Identifiers : An identifier is a name which given for variables, consonants, etc,.
2) Key words : Key
words are the reserved words in which the meaning already defined by the Compiler.
3) Constants : A
constant is value the does not change during the execution of a program.
Constants are two types… A ) numerical constant. (integer, real
constants).
B ) character constant.
4) Variables : A
variable is a data name used for storing some data value. Ex: sum,a, etc,.
5) Data types :
All ‘c’ supports a variety of data types…
A ) Integer
( int , 2(or)4 bits , %d ,-32768 to 32767 range )
B ) Float ( float , 4 bits, %f or %g,
3.4 e-38 to 3.4 e+38 range )
C ) Double ( double, 8 bits, %f, 1.7 e-308 to
1.7 e+308 range )
D ) Character ( char, 1 bit, %c, 0 to 255 )
6) Operators : There
are some operators. these are…
A
) Arithmetic
( ‘+’ , ‘-‘ , ‘*’ , ‘/’ , ‘%’ )
B
) Logical
( ‘&&’ , ‘;;’ ,’!’ )
C
) Conditional (<,>,==,<=,>=,!=)
D
) Relational (&&,;;,<,>,==,<=,>=,!= )
E
) Bit wise ( &,;,!,^)
F
) Assignment (‘=’)
G
) Increment/decrement (‘++’ , ‘-
-‘ )
H
) Shift (<< , >>)
7) Special symbols
: There will be some special
operators like ( ? , ; , \ , / )