Linked by David Adams on Tue 22nd Feb 2011 19:52 UTC, submitted by estherschindler
General Development Your company is ready to upgrade its custom applications from 32-bit to 64-bit. (Finally.) Here's 10 tips to help you make the transition as painless as possible.
Permalink for comment 463672
To read all comments associated with this story, please click here.
RE[4]: ?
by anda_skoa on Wed 23rd Feb 2011 11:55 UTC in reply to "RE[3]: ?"
anda_skoa
Member since:
2005-07-07

No, an int is 32bit on both 32bit and 64bit architectures.


Well, yes and no.
Yes in the sense that I personally don't know any 32bit environment either where this wouldn't be true but also No because the only thing you can safely assume is that an int is not shorter than a char and a char is at least wide enough to hold 8 bits.

That's why there are types with specified lengths, e.g. int32_t

Reply Parent Score: 2