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
What is the standard template library (stl)?
What is a terminating character in c++?
What is the difference between the functions rand(), random(), srand() and randomize()?
Is it possible to write a c++ template to check for a function's existence?
What is the C-style character string?
what is oops and list its features in c++?
What is the purpose of extern storage specifier?
What is setfill c++?
What would happen on forgetting [], while deallocating an array through new?
What is difference between array and vector in c++?
Describe linkages and types of linkages?
What is private, public and protected inheritance?
What is c++ code?
What is the latest c++ version?
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].