integers

May 7, 2012 at 2:29pm
what are _int32 and _int64
May 7, 2012 at 2:32pm
int32 is a 32 bit integer... when you declare "int" you are technically declaring an int32. int64 is a 64 bit integer. when you declare "long" you are technically declaring an int64. also there is int16 which is the same as "short." First link on google, didn't even have to click it http://www.google.com/search?q=_int32+compared+to+_int64&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a&surl=1&safe=active
May 7, 2012 at 2:34pm
closed account (zb0S216C)
A 32-bit integer and a 64-bit integer. See here: http://msdn.microsoft.com/en-us/library/29dh1w7z(v=vs.80).aspx

Wazzak
May 7, 2012 at 2:36pm
it depends on your compiler, but visual studio uses these as reserved words.

_int32 is really just a 32 bit integer, it can also be represented by: signed, signed int, or int
_int64 is really just a 64 bit integer, it can also be represented by: long long or signed long long

See this for more inforation:
http://msdn.microsoft.com/en-us/library/s3f49ktz(v=vs.80).aspx
Last edited on May 7, 2012 at 2:36pm
May 8, 2012 at 12:55pm
Can we use _int128?
May 8, 2012 at 1:30pm
There is no such type.
May 8, 2012 at 1:43pm
it is declared in limits.h
May 8, 2012 at 1:45pm
Hm, just checked. There is, it isn't just listed in the MSDN. So probably you can use it.
May 9, 2012 at 2:08pm
But how to use it,compiler gives error
undeclared identifier
May 9, 2012 at 2:13pm
These are not standard C++ types.

In C++11 you can use std::int32_t, std::int64_t, etc. if you include the cstdint header and your compiler support these types.
May 9, 2012 at 3:52pm
So it probably had a reason for not to be listed on the MSDN.
Topic archived. No new replies allowed.