+ 1

What is the difference between float double in c++ ?

24th Oct 2017, 1:38 PM
[No Name]
2 Answers
+ 2
In most modern architectures, a float is 4 bytes, a double is 8, and a long double can be equivalent to a double (8 bytes), or 16 bytes.
24th Oct 2017, 1:46 PM
Daniel
Daniel - avatar
0
float can hold four bytes whereas double can hold eight bytes. This just means that doubles are longer
24th Oct 2017, 1:51 PM
Cailyn Baksh