, , .
. . if else.
if :
if ()
_1;
else
_2;
else . , ( ), _1. ( ) else- , _2, _1 . , . , .
while dowhile. . while (), . :
while()
;
. while , , . () , , . ( ) , , :
while()
{
_1;
_2;
_n;
}
while .
do while. :
do
;
while();
, . , .. , . .
, while do while , do while.
for. , , . :
for(_1; _2; _3) ;
for :
(_1);
|
|
(_2);
(_3)
13. 18: , , .
. . , - . :
_ _( _1, , _n)
{
;
_1;
_m;
return ();
}
. , , . .
_ (char, int, float ..). , _ void (). ( - ), , . ( ). - . . void.
:
int mul(int a, int b)
{
int y;
y = a * b;
return y;
}
, . , , ( ) . .
. , . . , . , .
, , . : int mul(int a, int b); , , , . . : , , , ( ) .
. - , #include .
. MPLAB C18 , . , . *.h. #include< *.h>.