I have the number 20 (0x14) stored in a 32-bit register. The register is allocated to a C float variable representing the value 2.8e-44. Now I want to get the hexadecimal re
What are you doing there is Undefined Behavior, didn't you check the warning?
warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘double’ [-Wformat=] printf("n=%d\n",f); ^
Read this please: How do the digits 1101004800 correspond with the number 20?