Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - What do %f and %d mean in C language?
What do %f and %d mean in C language?

When outputting: %f is to output floating-point variables to screen printf or file fprintf;

%d is to output integer variables to screen printf or file fprintf;

p>

When inputting: %f reads the value from ssanf in the input string to the floating point variable in floating point format;

%d reads the value from ssanf in the input string in integer format. into integer variables;

This is the conversion of variables to input and output