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
what is C++ exceptional handling?
Is c++ slower than c?
Do we have to use initialization list in spite of the assignment in constructors?
What is using namespace std in cpp?
Array base access faster or pointer base access is faster?
What is a sequence in c++?
Write my own zero-argument manipulator that should work same as hex?
Explain the difference between c++ and java.
What is an object in c++?
what is Member Functions in Classes?
What is the use of main function in c++?
What is the use of string in c++?
What is the most useful programming language?
What is the difference between interpreters and compilers?
What does h mean in maths?