Home » Technical Questions » Programming

If the binary equivalent of 5.375 in normalized form is 0100 0000 1010 1100 0000 0000 0000 0000, what would be the output of the following program? main() { float a = 5.375 ; char *p; int i; p = ( char* ) &a ; for ( i = 0; i <= 3 ; i++ ) printf ( " %02x ", (unsigned char ) p[i] ); }

← Previous Next →

Discussion & Comments

No comments yet. Be the first to comment!