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

Explain the static member function.

902


Which is better c++ or java?

741


How do you find out if a linked-list has an end?

836


What is pure virtual function? Or what is abstract class?

791


Explain virtual class?

760






How does code-bloating occur in c++?

925


What is the use of seekg in c++?

786


What c++ library is string in?

773


Write a program to find the Fibonacci series recursively.

806


How do you declare a set in c++?

714


Write a program to find the reverse Fibonacci series starting from N.

796


Define pure virtual function?

727


What is helper in c++?

811


Write a function to find the nth item from the end of a linked list in a single pass.

730


What are the advantages of using typedef in a program?

825