What is the difference between %f and %lf in C? - Stack Overflow
https://stackoverflow.com/questions/25860850/what-is-the-difference-between-f-and-lf-in-c
Sep 16, 2014 · For scanf, %f reads into a float, and %lf reads into a double.. For printf: In C99 and later, they both are identical, and they print either a float or a double.In C89, %lf caused undefined behaviour although it was a common extension to treat it as %f. The reason that one specifier can be used for two different types in printf is because of the default argument …
DA: 69 PA: 70 MOZ Rank: 29