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 fflush c++?

568


what are the characteristics of Class Members in C++?

583


Is c++ free?

572


What are arrays c++?

598


Explain deep copy and a shallow copy?

596






Explain terminate() function?

587


Describe private, protected and public?

590


Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work

595


What are c++ tokens?

582


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

558


What is istream and ostream in c++?

584


Write is a binary search tree? Write an algo and tell complexity?

575


Is c++ an integer?

567


What is a constant reference?

610


What is the most powerful coding language?

602