Does anyone what the largest array is that I can allocate in Visual C++ 2010? The maximum number of elements, I mean. Can I do something like int tarray [unsigned long], where unsigned long is some unsigned number larger than a 32-bit integer?
Asked
Active
Viewed 68 times
0
-
Are you using the 32-bit or 64-bit compiler? – Jerry Coffin Dec 11 '12 at 18:03
-
It's set to 64-bit output. – user978122 Dec 11 '12 at 18:20
-
Note that in visual studio, `unsigned long` is a 32 bit integer. Maybe you meant `unsigned long long` or `long long` or `size_t` or `ptrdiff_t` or... – Mooing Duck Mar 05 '15 at 19:03