453,388 views
37 votes
37 votes
In C, for variables of type int we use %i as the format specifier in printf and scanf statements. What do we use as the format specifier for variables of type float, if we want to output the floating point value, showing 3 decimal places?

User Mneckoee
by
3.2k points

1 Answer

7 votes
7 votes

Answer:

variable with a leading sign, three fractioned digits after the decimal point

User Bisileesh
by
3.0k points