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

Can we make any program in c++ without using any header file and what is the shortest program in c++.

812


What is == in programming?

783


Is linux written in c or c++?

774


When does a name clash occur in c++?

901


Can we get the value of ios format flags?

854


Explain all the C++ concepts using examples.

903


What is abstraction in c++ with example?

766


Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes

823


How do you show the declaration of a virtual constructor?

717


What are the 3 levels of programming languages?

763


How to implement is-a and has-a class relationships?

767


How many types of modularization are there in c++?

769


Is c++ the best programming language?

738


Write about all the implicit member functions of a class?

821


What is the advantage of c++ over c?

747