What is the Maximum Size that an Array can hold?

Answer Posted / dinesh

The maximum array size can be as per the below formula

TOTAL_RAM-(HEAP_AREA+DATA_SECTION+BSS_SECTION+STACK_SIZE)

DATA and BSS section which are used.
HEAP & STACK which are allocated.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are abstract data types in c++?

750


Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.

1035


What is class invariant in c++?

956


Can I learn c++ without c?

881


How do you initialize a string in c++?

734


What is an adaptor class in c++?

781


Which bit wise operator is suitable for turning off a particular bit in a number?

850


What is the keyword auto for?

783


What is constant in c++ with example?

846


what is C++ objects?

892


Implement stack operations with pointers with appropriate exception checks.

755


Describe Trees using C++ with an example.

834


How do you establish an is-a relationship?

827


What is singleton pattern in c++?

715


What is the output of the following program? Why?

814