5

Why does GCC stores ints and longs over 32 bits ? What's the point then ?

Comments
  • 0
  • 2
    use int32_t and int64_t then. don't trust the platform
  • 0
    My guess it was for some kind of backward compatibility, while int follow the system e.g. 32 bit on 32 bit system, long stays on 32 bit for when the standard was 16 bit. I use long long for 64 bit lol
  • 0
    iirc gcc packs things strangely.
Add Comment