Quantcast
Viewing all articles
Browse latest Browse all 1175

Value of 1E10 when assigned to an integer is different in intel C++ and visual studio MSVC compiler

Hi,

The integer value is different for intel C++ compiler and visual studio MSVC compiler.

The value of 1E10 when assigned to an integer is "1410065408" for MSVC compiler  and whereas for intel C++ is "-2147483648". Could you explain why the value is not same for both the compilers.

Due to this the same code is causing runtime exceptions when compiled through intel C++ compiler. 

Thanks,

Pradeep

 

 

Zone: 

Thread Topic: 

Question

Viewing all articles
Browse latest Browse all 1175

Trending Articles



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