What is the Maximum Size that an Array can hold?
Answer Posted / sankalp bose
For arrays allocated on the stack, it depends upon the
maximum stack size. For example, for gcc, it is normally 64K
but may be something else. For arrays allocated dynamically
or arrays defined in global/static scope, this number is
different and depends upon the maximum heap area size and
the maximum data segment size respectively. The getrlimit
system call can be used to get all these values.
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
In the derived class, which data member of the base class are visible?
Is it possible to provide special behavior for one instance of a template but not for other instances?
What return value must conversion operators have in their declaration?
What is a c++ map?
Write a program to find the reverse Fibonacci series starting from N.
Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort
What is scope resolution operator in c++ with example?
How do pointers work?
What do manipulators do?
What is buffering in c++?
What do you mean by vtable and vptr in c++?
Can member data be public?
Why null pointer is used?
What is a pdb file?
What is #include iostream h in c++?