is there a max size for an array? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

is there a max size for an array?

is there a max size for an array in c++? if yes,then when I want to insert element more than its size. what should I do? is there any alternative way?? please explain it

14th Nov 2017, 4:56 PM
Nasim
Nasim - avatar
2 Answers
+ 1
I think it's infinity!cause if try using an infinite. "for" loop to pass elements into an array it works fine!
14th Nov 2017, 5:54 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar