parenthesis and int as their return types.
If a function prototype specifies its return type as void
then it is terminated by the closing brace of its definition. If you want to return some value from a
function, you must use the return statement with a value within its body. The return statement returns
only one value at a time. A void returning function can use the return statement with no value as:
void example( )
{
printf(”\n Thanks to God”);
return;
}
Also note that the return statement can appear anywhere in the function body. It means that
Do'stlaringiz bilan baham: |