Ants, Structures, Unions, and Enumerations

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

 Character set is a set of valid character a language can

recognize.
 Smallest individual unit of program is called token.(c++=>
keywords , identifiers ,literals, punctuators and operators)
 TOKENS -
*Keywords - special meaning to language compiler
*Identifiers -arbitrarily long seq. of letters and digits.
(eg.myfile , _DS) {( _ ) - a letter , uppercase and lower
case letters are treated differently in c++}
*Literals-constants{int,char,float(real)const,string literal}
^Floating point const -{exponent form} 1> mantissa(before E)
.^
2> exponent(after E)E01=101 string lit. - '\0' added at end
*PUNTUATORS/SEPERATORS - (),{},[],#,; : *=
*OPERATORS -triggers some computation or action .
 Fundamental data types - char,int,float,double and void.
 Derived data types array ,functions, pointers,references,const-
ants ,structures ,unions, and enumerations .
 Data-type modifiers - signed,unsigned,long and short.
DATA TYPE : SIZE(IN BYTES) :
1. INT 2
2. SHORT 2
3. LONG 4
4. CHAR 1
5. FLOAT 4
6. DOUBLE 8
7. LONG DOUBLE 10

You might also like