Answer E3

Expression evaluates to: 45.000000

Now the format code %f matches the data type of the 45.0

  printf("Expression evaluates to: %f\n", 45.0 );

The number of zeros after the decimal point depends on your system. You can control this: the format code %.2f will use two digits for the decimal fraction and however many are needed for the non-fraction part.



Back to Puzzle Home