What is c printf %f default precision?

c, c++, precision, printf

Solution

The ANSI C standard, in section 7.19.6.1, says this about the f format specifier:

If the precision is missing, 6 digits are given

Problem

I'm curious: If you do a `printf("%f", number);` what is the precision of the statement? I.e. How many decimal places will show up? Is this compiler dependent?

Original source