0

Difference between float and double in C

4th Dec 2019, 3:49 PM
dharmateja pulimanti
dharmateja pulimanti - avatar
3 Respostas
+ 1
float has a size of 4 bytes. double has a size of 8 bytes. One more difference is that the float variable has lower precision of storing decimal point values when compared to double.
4th Dec 2019, 4:02 PM
Avinesh
Avinesh - avatar
+ 1
double is a short form for double-precision floating-point format. This is defined in IEEE-754 standard. float uses 32-bit of memory, double uses 64-bit of memory.
4th Dec 2019, 4:05 PM
Michael
Michael - avatar
0
Thanks friends
4th Dec 2019, 4:10 PM
dharmateja pulimanti
dharmateja pulimanti - avatar