In Windows systems different data types have the same size (see http://msdn.microsoft.com/en-us/library/s3f49ktz(v=VS.100).aspx) I couldn’t help but wonder is there a difference between double and long double or between long and int? When I ask about differences I mean difference in calculations.
In Windows systems different data types have the same size (see http://msdn.microsoft.com/en-us/library/s3f49ktz(v=VS.100).aspx ) I
Share
According to the C++-standard they may be different, but don’t have to. The guarantee is that the
longversions are always at least as large as their non-longcounterparts.In general, the sizes of data-types depend on the system on which you are running. So while there may not be a difference on your system, there may be on others. You have to be aware of that if you want to write portable code.