0
What does byte mean when it says that float has 4 bytes and double has 8 bytes?
I searched but i still dont quite get it, i think it means how many characters it has but im still not sure
3 Antworten
+ 4
It's about how many bytes it is required to store the value.
float requires 4 bytes ---> float can store 2^(8*4) different values.
double requires 8 bytes ---> double can store 2^(8*8) different values.
+ 4
Just to clarify what bits and bytes are-
https://www.sololearn.com/Discuss/2090896/?ref=app