Code:include <stdio.h> void getSignMantissaExponent(float number, int* sign, unsigned int* mantissa, int* exponent){ int* second = (int *) &number; *sign = (*second) & 0x80000000; /* note one ampersand for bitwise-and */ *sign = *sign >> 31; if (*sign == 0) *sign = 1; else *sign = -1; *exponent = (*second) & 0x7F800000; *exponent = *exponent >> 23; *exponent = *exponent - 127; *mantissa = (*second) & 0x7FFFFF; *mantissa = *mantissa | 0x800000; printf("Sign bit is %d\n", *sign); printf("Exponent is %d\n", *exponent); printf("Mantissa is %x\n", *mantissa); } int main() { float first = -10; int* sign; int* exponent; unsigned int* mantissa; getSignMantissaExponent(first, sign, mantissa, exponent); return 0; }