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


Please Help Members By Posting Answers For Below Questions

What are the differences between java and c++?

749


what is multi-threading in C++?

845


What is the difference between a pointer and a link in c ++?

812


Explain container class.

993


What is c++ library?

830


Explain the use of virtual destructor?

859


Explain polymorphism?

854


What are the various situations where a copy constructor is invoked?

869


What is a static element?

837


What are files in c++?

808


What is the difference between a template and a macro?

833


Why the usage of pointers in C++ is not recommended ?

1141


Is facebook written in c++?

790


Explain the virtual inheritance in c++.

836


What is virtual destructor ans explain its use?

876