Question: Write a C program. sample output is there. Program Description Write a C program which interprets the bits of a floating point number to extract

Program Description Write a C program which interprets the bits of a floating point number to extract the three fields in the number and print them in hexadecimal and binary. Print them in the form , where a is the integer portion of the value, b is the fractional portion, and c is the exponent. These floating point numbers are similar to scientific notation: Here "1" is the integer portion, "25" is the fractional portion, and "3" is the exponent. Sample Output Here is representative output (the above with debug stuff turned off): Enter a value: 123.24 |-1.1110 1100 1111 0101 1100 001 * 2^(0000 0110) Enter a value: -1042.3023 +1.0000 0100 1001 0011 0101 100 * 2^(0000 1010)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
