<<<
Index
>>>
Communication between functions
Functions can have (optional) input parameters:
int
max_value(
int
x,
int
y ) {
if
( x > y )
return
x;
return
y; }
return
statement is the mechanism for returning a value:
return
expression
;
Type of returned value has to agree with the function prototype;
The calling function is free to ignore the returned value.
<<<
Index
>>>