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 the standard template library (stl)?

729


What is a terminating character in c++?

874


What is the difference between the functions rand(), random(), srand() and randomize()?

824


Is it possible to write a c++ template to check for a function's existence?

659


What is the C-style character string?

696






what is oops and list its features in c++?

642


What is the purpose of extern storage specifier?

710


What is setfill c++?

791


What would happen on forgetting [], while deallocating an array through new?

714


What is difference between array and vector in c++?

635


Describe linkages and types of linkages?

661


What is private, public and protected inheritance?

674


What is c++ code?

674


What is the latest c++ version?

704


Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].

1068