What is written by the following?
#include <stdio.h> #include <stdlib.h> /* Puzzle E03 -- match */ int main() { printf("Expression evaluates to: %f\n", 45.0 ); return 0; }
The data type of an explicit floating point value like 45.0
is double
.
This is because most floating point calculation should be done at least at the level of double precision.