. if. switch.
if:
2
if () 1;
[else 2;]
switch:
switch ()
{ case 1: [ ]
case 2: [ ]
case n: [ ]
[default: ] }
- break return
- , .
9) ++. . . .
:
-
- :
1)
2)
3)
4)
-
- ,
- ,
while:
while () ;
int a=100, sum=0;
while (a!=0) {sum+=a; a--;}
do while:
do while ();
int a=100, sum=0;
do {sum+=a; a--;} while (a!=0);
for:
for (; ; ) ;
- for ,
int sum=0;
for (int a=1; a<=100;a++) sum+=a;
. goto. break. continue. return.
4 , :
goto
break
continue
return -
GOTO:
goto ;
..
: ;
BREAK:
, ,
CONTINUE:
. , ,
RETURN:
return [];
void, return
. . . .
.
3 :
-
-
- void
, .
: *;
- .
|
|
: (*) ( );
void , , , . void , .
:
1) :
- (&)
-
- ,
2)
3) ()
4) :
- ++ new
- - malloc
:
- (*) , . *_ , .
- (=)
-
- 2
- 2
-
:
- , - . sizeof( )
- ,
- ,
- 2
,
: & = ;