Why does scanf() need "%lf" for doubles, when printf() is okay with just "%f"?
Asked 2008-10-16T23:05:15.953
197
Why is it that scanf() needs the l in "%lf" when reading a double, when printf() can use "%f" regardless of whether its argument is a double or a float?