Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - The problem of empty return value of function definition in C language
The problem of empty return value of function definition in C language
Change it to this:

void f()

{

Floating a;

printf("%f ",a); //Your original output format is wrong.

}

Functions of void type have no return value, that is, no return statement is required.

Of course, you can also add an empty return statement at the end of the function: return; (and returns1; Is different)

Empty f (floating point a)

{printf("%f ",a);

}

It is also right. ....