When using scanf() to assign to a to a double is this the right way to do it:
Thanks!Code:scanf("%f%*c", double) or scanf("%lf%*c", double)
When using scanf() to assign to a to a double is this the right way to do it:
Thanks!Code:scanf("%f%*c", double) or scanf("%lf%*c", double)
Am I missing something? Why not do this?
Code:double x; ... scanf("%lf",&x); ...
I think to be technically correct, %f is for floats and %lf is for doubles.
ok thank you very much that is what I thought. Thank you.