+ 2
What is the difference between the 'float' and the 'double' data types ?
also want to know the difference between '%lf' and '%lf' format specifiers .
4 Respostas
+ 3
The range between those data types varies.
float: It occupies 4 bytes (32bits).
double: It occupies 8 bytes(64bits).
+ 1
float is type just with floating point, but double has double accuracy
https://stackoverflow.com/a/27598164
0
The precision. Double has a smaller margin of error.
0
One data type occupies 4 bytes and another occupies 8 bytes.
Is this the fundamental difference between 'float ' and 'double ?
Is it so, then what will happen , if I use float instead of double?