Trying to print float number in hexadecimal format:
int main() {
float a = 1.1;
printf("%f %X\n", a, a);
}
For some reason printf returns this:
1.100000 A878DAC8 // hex number is random every time
It should be 3F8CCCCD. Why does it have such behavior?