Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22077

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

$
0
0
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 22077

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>