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
Differentiate between an external iterator and an internal iterator?
What is capacity in vector in c++?
What is c++ programming language?
What do you understand by a pure virtual member function?
Can I uninstall microsoft c++ redistributable?
Difference between pointer to constant vs. Pointer constant
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.
Is there a c++ certification?
What is the use of class in c++?
What character terminates all character array strings a) b) . c) END
Describe the setting up of my member functions to avoid overriding by the derived class?
How to get the current position of the file pointer?
Why do we use templates?
What are the different types of polymorphism in c++?
Which format specifier is used for printing a pointer value?