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
How can you link a c++ program to c functions?
Can you write a function similar to printf()?
What is general form of pure virtual function? Explain?
Is c++ a dying language?
Which bitwise operator is used to check whether a particular bit is on or off?
What is the standard template library (stl)?
Differentiate between an array and a list?
What causes a runtime error c++?
What are the different types of comments allowed in c++?
What is the prototype of printf function?
What are the three forms of cin.get() and what are their differences?
Which c++ operator cannot overload?
What is encapsulation in C++? Give an example.
What are single and multiple inheritances in c++?
What is problem with overriding functions?