What is the Maximum Size that an Array can hold?
Answer Posted / reejusri
Maximum size has nothing to do with only the stack area,
but the area where the array is allocated from. The OP did
not say whether the array was created from dynamic memory
(a.k.a the heap), block or local memory (a.k.a. the stack),
or where automatic variables are declared.
The amount of memory available depends on:
1. The total memory on the platform.
2. The amount of memory allocated to the program.
3. The compiler's settings.
| Is This Answer Correct ? | 17 Yes | 9 No |
Post New Answer View All Answers
Will rust take over c++?
What do you mean by ‘void’ return type?
What are the benefits of pointers?
Define Virtual function in C++.
Evaulate: 22%5 a) 2 b) 4 c) 0
How are virtual functions implemented in c++?
What is #include iostream h in c++?
Which is the best c++ compiler for beginners?
Is there any difference between int [] a and int a [] in c++?
What is c++ array?
What are manipulators in c++ with example?
How do you define/declare constants in c++?
Does c++ have a hash table?
When should you use global variables?
Is c++ double?