What is the Maximum Size that an Array can hold?

Answer Posted / bipin pandey

It depends on your pc's memory size.
for example,if your declared an array: int array[3001][3001]
it needs 32bit*3001*3001=288M memory space.
in such way,i can calculate the Maximum size of array i can
i use
according
to our array type and memory size.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the benefits of pointers?

588


How the delete operator differs from the delete[]operator?

635


Can we use this pointer in a class specific, operator-overloading function for new operator?

607


How do you establish a has-a relationship?

603


What do you mean by translation unit in c++?

660






Explain the volatile and mutable keywords.

611


If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?

659


Can we declare a base-class destructor as virtual?

577


Can you please explain the difference between using macro and inline functions?

515


What are the types of pointer?

542


What is stoi in c++?

690


What are the stages in the development cycle?

570


How do you show the declaration of a virtual constructor?

524


What is the use of namespace std in C++?

610


How are pointers type-cast?

637