
24 Programming for Chemical Engineers
Lines 15 to 16: Prints out the values of the array temp[][] again using the for
loop statement.
CREATING FUNCTIONS
Functions are the building blocks of C programming. They are a group of statements
or instructions performing a specific task. Functions follow a general form:
return_type function_name (parameters)
{
body of the function;
return(value);
}
The return() function can be used to:
- cause an abrupt exit from a function it is in,
- or return a value.
All functions, except those declared as type
void, return a value. The
return() function explicitly specifies this value. In fact, we can save some ...