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
What is the use of ::(scope resolution operator)?
Where and why do I have to put the "template" and "typename" keywords?
What is the difference between the compiler and the preprocessor?
Why c++ is the best language?
What's the most powerful programming language?
What is enum c++?
Can I uninstall microsoft c++ redistributable?
Write a Program to find the largest of 4 no using macros.
Which is the best c++ compiler for beginners?
What is flush () in c++?
What are advantages of c++?
Program to check whether a word is a sub-string or not of a string typed
What is the purpose of template?
What is the difference between while and do while loop?
What language does google use?