I have the following C program
double d = 1.4; int x; x = d * 10; printf("\n\n VALUE = %d " ,x); I have gcc 4.3.3 which comes with Ubuntu 9.04
I get answer as 13 with -O0 but get correct answer i.e 14 with higher levels of optimization
Is this a known issue or something wrong with my code?