Thursday, July 30, 2009

What is the maximum array dimension in c++ language?

It can't be bigger than the maximum integer size. Use INT_MAX to find the max on your machine.

What is the maximum array dimension in c++ language?
If you have to ask this question then you probably have too much data.


Depending on how you are specifying the array the compiler will either create the array at compile time and make a very large exe file or the array will be created at runtime. Either way this will be a strain on the computer memory.





You will be better off trying to find another way to store your data.


No comments:

Post a Comment