KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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 ? Example code: double d; scanf("%lf", &d); printf("%f", d);
Tags (comma-separated)
Save Edits
Cancel