+ 4
We use %d for integer and %f for float. What do we ue for double?
2 Respostas
+ 5
%lf
edit:
%i is also used for integer.
+ 4
As @Mohd Aadil said, double format specifier %lf is used for double. Double is thought as long float, so %lf(Long Float) was chosen for double I guess