D low level
Programming
Speed
2) of execution
3) Derived from e
↳ Richer library than e
5)
Object Oriented
Programming
3
/p op in e & ++
cout-used standard output device.
something
to write on our
lim-wed to
something from
read our standard ip device
.
Variables and Data Type :
m i n
s e e
Note: A variable name can't
begin with number
.
↑types :
8-
Char = I bite 7-128 to 127
int -231 to 23 -
C int
C-23 to 23 1)
-
long int
C-2 to 263 D
63
org long int
-
int (o to (2)
umgined
unigned
char (o to dint
float
double
bool .
,& int main()
S
into ;
Cout m ; o/p )
=
random value
any .
Geturmo;
3
eg inst main &
Cout (Char)"" ;
Lizef
Char e;
Coutlizeof(d)"" ;
Coutrized (int)"" ;
I I
eg in +;
Eglobal Variable isn't 12 iset ei
int main()[int main()
int main()
E
i set e = 10 ;
E inte =
10 ;
Coul Cout n E
return o ;
imt M :
20 ;
Y
Y
ofp => 10 3
Cateri
S
Note : The
region
bete two
Early
0720(bse
-
braces is known as scope
.
near by ecope value is 2)
, I
int main() I int
maincs
e
static inte; ; Const int d =
10 ;
Coutu ; a =
n + 10 ;
Geturn Og CoutX ;
3 3
10
op =>
Errors in C++
-
cloring bracket if variable
DSontax Error - due to semicolon , open I ,
is sit declare
Cariler .
I
2 Semantic Error = 16 U
=
- Linker error
if we
calling a
fur &
fun definition is there there
linker
we
get .
error
4) Run time error => M/y91-0]
= = Fatble => n = +
b) /v
Logical error
1)I (n +) =
=> ( = =
+)
-
#