Calling Functions
Example:
int main () {
int a, b, c;
float average;
a = 3;
b = 4;
c = 5;
average = Average3 (a, b, c);
PrintResult (average);
b = Sum10 ();
PrintResult ((float)b);
return (0);
}
Notes:
- When a function with a void in the prototype or header is
called, void is not written is the function call.
- If return values are not assigned to a value or passed to another
function, they're lost.
- Function calls will not work if you don't pass the function the correct
arguments. Watch your variable types.
Last Modified 26 September 2000