architecture - Is there any programming language where the variables types sizes in bits depends on the platform (32 vs 64 bit)? -
itemprop = "text">
I'm a C # developer and I'm almost certain that an "int" in this language always has 32 bits (30 bits) regardless of platform 32 vs 64 bit), a "tall" is always 64 bits, one float is 32 and one double 64 and so on.
Is there any language where it does not like? Where does the integer shape depend on Pro's processor?
In C / C ++ the sizes of int etc. are not formally defined - they are compiler specific ; for more information.
The C # designer thankfully conceived in the imagination: int = System.Int32, long = System.Int64, etc. - so you do not have to worry about it. The only easily noticeable difference on X64 is IntPtr.Size
.
Comments
Post a Comment