#include
int main() {
unsigned value = 7;
unsigned c;
unsigned displayMask = 1 << 31;
printf( "%10u = ", value );
for ( c = 1; c <= 32; c++ ) {
putchar( value & displayMask ? '1' : '0' );
value <<= 1;
if ( c % 8 == 0 ) {
putchar( ' ' );
}
}
return 0;
}
7 = 00000000 00000000 00000000 00000111