Question: /* Print a float in binary: ftob.c */ #include #include //void float_to_string(float f, char *s, int n); void float_to_string(float,char *,int); void print_float(); #define LEN 32
3. Write a C program to print the binary values of a floating point number passed as a parameter, as demonstrated in class, by filling in ftob.c. For example, it would print "001111110 10000000000000000000000" when you type "ftob 0.75." So would it "o 0ll11101 00110011001100110011010" when you type "ftob 0.3" as demonstrated
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
