0
How to declare a integer array with the maximum size in C++?
What is maximum size of an array for integer type and how do we declare it
1 Resposta
+ 4
There are 2 limits for C++ array sizes. First: it's based on your std::size_t, which is defined by the type of your system. Second: your physical memory. As you can see, both of them are limits enforced by hardware, C++ itself does not have limits on your array length.
Good luck coding!