Question: Code in C char bits_int(float f){ return *(int*)&f; } Write a function to return a float containing the actual float value of the mantissa of
Code in C

char bits_int(float f){
return *(int*)&f;
}
Write a function to return a float containing the actual float value of the mantissa of a float. You should call get_flt_bits_int to get the bits in an int and return the int with the mantissa value Example: for f =-15.375 n 11000001011101100000000000000000 the mantissa bits are 11101100000000000000000 the actual value of the mantissa is 0.9218750000 The function should accept a float and return an int ok/
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
