3 ms·
No. ISO C has standardized "float" to 32 bits and "double" to 64 bits. The one that's platform-dependent is "long double".
by knz42 9y ago
No. ISO C has standardized "float" to 32 bits and "double" to 64 bits. The one that's platform-dependent is "long double".
- ComputerGuru 9y agoAnd, oxymoronically, plain, old long. In particular, everything but MSVC treats long as 64 bits, but MSVC treats it as 32 bits for backwards compatibility. However, I haven't used int or long or long long in ten years or so. Thanks to stdint.h support finally making its way to all platforms, it's exclusively sized types like int32_t and uint16_t for me.