/* ----------------------------------------------------- demo C program file used in teaching CS255 in class ----------------------------------------------------- */ #include void printBits(int x, int n); void printFBits(float x, int n); int main( int argc, char* argv[] ) { double r = 3.14; { /* Inner scope (a new scope !) */ int r = 4; /* Illegal in Java */ } } /* ---------------------------------------------------------------- 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<