Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to customize a function with an empty return value
How to customize a function with an empty return value
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);

}