What is the origin of the name "scanf" and the qualifier "% g"?

What does the "f" in 'scanf' mean?

Also, why do double values ​​mean "%g" - what does g mean?

+4
source share
1 answer

I assume f means the function accepts a format specifier, like printf() does.

%g = %f + 1 , I think, since %d was assumed to be a decimal integer.

A complete list with descriptions can be found here .

+3
source

All Articles