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

21st Mar 2017, 2:36 AM
Shubham Yadav
Shubham Yadav - avatar
1 ответ
+ 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!
21st Mar 2017, 2:45 AM
Forever An Apple
Forever An Apple - avatar