/ * The prototype of the function, here it is declared, only the data type of its parameters, name and return type are indicated. Now it will be visible anywhere in the program. * /
void function (int, double);
int main ()
{
int x = 10;
double y = 25.56;
function (x, y); // Call the function to which the actual parameters x and y are passed
return 0;
}
/ * Function definition. Contains formal parameters a and b. When the function is called, they will be replaced by the actual parameters, in this case x and y, respectively. * /
void function (int a, double b)
{
// The body of the function, contains the function code.
}