float function(float a, float b, float c) { float tmp; tmp = (a + b + c )/ 3.0 ; return tmp; }
The definition contains the actual code of what is to be implemented when the function is called.
int x, z; float y; // x and y are assigned some values in the program z = function1(x, y);
float x,y,z; // x, y and z assigned values in program function2(x, y, z);
int a; a = function3();
float a, b; // b assigned a value in program a = function4(b);
function5();
Back to Questions | Back to Main Page for Lecture 6 |