Quantcast
Viewing all articles
Browse latest Browse all 22151

GCC compiler gives different results for Windows and Linux? [duplicate]

float i = 2.5f;printf("%f, %d", floor(i), ceil(i));

This is giving output: 2.000000, some garbage value.But for gcc 32-bit Linux platform answer is 2.000000,0Why is that?


Viewing all articles
Browse latest Browse all 22151

Trending Articles