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 to demonstrate the use of a variable?
Why do we need constructors in c++?
What is a type library?
Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL
When is the destructor called?
What is #include iostream?
What is an arraylist c++?
Can I learn c++ as my first language?
What does iomanip mean in c++?
How a pointer differs from a reference?
What happens if a pointer is deleted twice?
Can you write a function similar to printf()?
What is the full form of dos?
What is the identity function in c++? How is it useful?
How can you quickly find the number of elements stored in a static array?