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
Is c++ fully object oriented?
Do the names of parameters have to agree in the prototype, definition, and call to the function?
Why is c++ a mid-level programming language?
Why is c++ called oops?
What is endl?
Why is c++ so fast?
What does flush do?
What is DlgProc?
Write a c program for binary addition of two 8 bit numbers.
what are the types of Member Functions?
What is a singleton class c++?
If a header file is included twice by mistake in the program, will it give any error?
What is the use of lambda in c++?
How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to store linked list in an array?how can you find the nodes with repetetive data in a linked list?
What is a pointer how and when is it used?