What is the Maximum Size that an Array can hold?

Answer Posted / prasant

It depends on the stack size. If the compiler option is
chosen as default then the default stack size is 1MB and an
array can be allocated upto 1MB size. If the array size
exceeds this limit then the program will throw stack
overflow error.

Is This Answer Correct ?    16 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a volatile variable in c++?

548


What are the benefits of oop in c++?

578


Refer to a name of class or function that is defined within a namespace?

590


Does c++ have arraylist?

529


What is anonymous object in c++?

626






What is the use of data hiding?

585


How do you save a c++ program?

548


What is virtual base class uses?

701


What are the effects after calling the delete this operator ?

543


What are the extraction and insertion operators in c++?

555


What is exception handling? Does c++ support exception handling?

581


Why Pointers are not used in C++?

612


What is an undefined reference/unresolved external symbol error and how do I fix it?

591


What are single and multiple inheritances in c++?

568


What is the protected keyword used for?

607