Hello everyone,
When using "int", it is always 32-bit? No matter whether we make build option as Any CPU, x86 and x64?
thanks in advance,
George
Hello everyone,
When using "int", it is always 32-bit? No matter whether we make build option as Any CPU, x86 and x64?
thanks in advance,
George
No. It is COMMONLY 32 bits, but there are certainly compilers/systems that have different size int, bot larger and smaller.
However, Windows code will break if int and long aren't 32 bit, so you can rely on it for a Windows compiler.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
If we are talking about C# (or more precisely - .Net CLR) - I think the answer is yes, int is 32 bit, it is done for multi language compatibility
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler
Yeah, it's George2 again, clueless and unable to google as always.
STFW
hth
-nv
She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."
When in doubt, read the FAQ.
Then ask a smart question.
ROFLMAO - http://www.slash7.com/pages/vampires
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.