/* ----------------------------------------------------- demo C program file used in teaching bit manipulation ----------------------------------------------------- */ #include void printBits(int x, int n); void printFBits(float x, int n); int main( int argc, char* argv[] ) { int x = 4; printBits(x, 32); printf("Hello\n" ); } /* ---------------------------------------------------------------- Help functions to print a representation in bits ---------------------------------------------------------------- */ void printBits(int x, int n) // Integer { int i; for ( i = n-1; i >= 0; i-- ) if ( x & (1<= 0; i-- ) if ( (*p) & (1<