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
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
Can we inherit constructor in c++?
What does it mean to declare a member variable as static?
Do class declarations end with a semicolon?
Explain class invariant.
Explain friend class?
How do you initialize a string in c++?
Explain stack unwinding.
What language is a dll written in?
What is prototype for that c string function?
What is the difference between global int and static int declaration?
what is the difference between overloading & overriding? give example.
Do the names of parameters have to agree in the prototype, definition, and call to the function?
Define namespace in c++?
Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.