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 is C++ exceptional handling?

709


Is c++ slower than c?

665


Do we have to use initialization list in spite of the assignment in constructors?

668


What is using namespace std in cpp?

635


Array base access faster or pointer base access is faster?

1920






What is a sequence in c++?

661


Write my own zero-argument manipulator that should work same as hex?

680


Explain the difference between c++ and java.

736


What is an object in c++?

695


what is Member Functions in Classes?

702


What is the use of main function in c++?

613


What is the use of string in c++?

634


What is the most useful programming language?

690


What is the difference between interpreters and compilers?

719


What does h mean in maths?

666