make use of the property of union keyword
#include <stdio.h>
union FloatingPointIEEE754 {
struct {
unsigned int mantissa : 23;
unsigned int exponent : 8;
unsigned int sign : 1;
} raw;
float f;
} number;
int main() {
number.f = 85.125;
printf("%x, %x, %x", number.raw.mantissa, number.raw.exponent, number.raw.sign );
return 0;
}