/* --------------------------------------------------------------------------- // Figure 15.11: Correct and mismatched formats. // --------------------------------------------------------------------------- */ #include void main( void ) { long int j = 117440518L; /* Has 1 bits near both ends, 0 bits between. */ short int k = 55; float f = 4.4; printf( "\nHere are the variables printed with correct formats:\n\t" "k=%hi j=%li f=%g\n\n", k, j, f ); printf( "Here are the results of some format errors:\n\t" "k=%li j=%hi f=%c f=%g \n\n", k, j, f, f ); }