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 are the differences between new and malloc?
What is stream and its types in c++?
What is the best way to declare and define global variables?
What is the v-ptr?
what are the characteristics of Class Members in C++?
What is virtual destructor? What is its use?
What relational operators if statements in c++?
Do the parentheses after the type name make a difference with new?
How many ways can a variable be initialized into in C++?
Explain what is class definition in c++ ?
What is a float in c++?
Why do we use string in c++?
How is c++ different from java?
What does new return if there is insufficient memory to make your new object?
What is buffer and example?