C functions
General form:
type function(type arg)
{
type local_var;
BODY
return val;
}
Example:
double square(double x)
{
double s;
s=x*x;
return s;
}
Previous slide
Next slide
Back to first slide
View graphic version