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 difference between the parameter to a template and the parameter to a function?
What is the main use of c++?
Why is c++ awesome?
What is null pointer and void pointer and what is their use?
Which operator cannot be overloaded c++?
If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?
What are the methods of exporting a function from a dll?
Explain what are single and multiple inheritances in c++?
What is stoi in c++?
Which of the following is evaluated first: a) && b) || c) !
declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator
What are the various compound assignment operators in c++?
What is a storage class?
What is implicit conversion/coercion in c++?
Describe about storage allocation and scope of global, extern, static, local and register variables?