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 lvalue?

703


What is the syntax for a for loop?

605


What do you mean by late binding?

623


What is recursion?

666


Write about the local class and mention its use?

617






What is the difference between a type-specific template friend class and a general template friend class?

564


How are Structure passing and returning implemented by the compiler?

603


Describe delete operator?

631


What are c++ stream classes?

564


What is the use of typedef?

640


Can notepad ++ run c++?

550


What is meant by the term name mangling in c++?

524


What is rtti in c++?

631


How do you initialize a string in c++?

568


What is pointer -to-members in C++? Give their syntax?

599