My professor said that when you do scanf doubles are represented with %lf but in printf it's %f (which is for floats.) This is odd because he said that in his coding class we never use floats, only doubles. He didn't explain why.
I wrote a simple program that prints a double. I used printf with either %lf and %f. The result was the same.
What's the difference?