I'm getting started with C++ and programming and want to learn the basics to make sense of the rest of the goodies. I just learned about the binary conversion of, e.g. integer and char and how if I write char c = 8 the binary of this is 00001000 which is 2^3 and the rest are 0s.
But I tried this with float f = 8 and it shows:
01000001 00000000 00000000 00000000
If I were to use the same argumentation, then this binary would be 65. Can someone explain how this floating number has a different result?