+ 6

what is the maximum length of Array we can create..

what is the maximum length of Array we can create... does it affect the length if we use integer or double or char.. as data type.. does it vary from compiler to compiler..

1st Oct 2017, 8:45 AM
Omkar Tripathi
Omkar Tripathi - avatar
2 Antworten
+ 15
There are two limits, both not enforced by C++ but rather by the hardware. Continue read at [https://stackoverflow.com/questions/216259/is-there-a-max-array-length-limit-in-c]
1st Oct 2017, 8:58 AM
Babak
Babak - avatar
+ 2
It may depend on your hardware capacity. But mainly there is a certain amount of memory which is required for the programs. Hope i was clear to you
4th Oct 2017, 4:17 AM
dhiman mishra
dhiman mishra - avatar