declaring 64bit unsigned int

Mar 5, 2012 at 1:25am
I know there is a way to declare an 8byte unsigned int, but i've forgotten the syntex. Please help!

It is for my 32bit version of Heap Variable.


Mar 5, 2012 at 1:37am
long long, if your compiler supports it.

MS's answer is _int64.

Actually, from wikipedia, the following, if your compiler supports it:

word, doubleword, longword, long long, quad, quadword, int64

long long is what I think C++ uses.

MS is still _int64.
Last edited on Mar 5, 2012 at 1:39am
Mar 5, 2012 at 2:19am
closed account (o1vk4iN6)
You can use cstdint which declares uint64_t, not sure if microsoft's compiler has this implemented yet though.

http://en.cppreference.com/w/cpp/types/integer
Last edited on Mar 5, 2012 at 2:20am
Topic archived. No new replies allowed.