What is the Maximum Size that an Array can hold?
Answers were Sorted based on User's Feedback
Answer / anand
An array is a derived data types, so normally array size depends upon the data type.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sampath
hi friends !
your system free memory space is the maximum limit
assume this u can understand this
char array == string == char pointer
so pointer use all free space in ur system so if we allocate
dynamic array means our system free memory is the limit
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / vikash anand
It has been years since everybody has posted answers here and I feel anybody that needs the answer for question can get all relevant answers. I request administrator to close this topic for updation.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / chaitanya
the array is declared based on data type,then the array
size is also based on size of data type
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / giri
I think array size is depend on size of Stack in which it
get store
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / 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 |
What is atoi in c++?
What is auto used for in c++?
Which format specifier is used for printing a pointer value?
What are smart pointer? Whats its use?
What do you mean by function overriding & function overloading in c++?
What is virtual function? Explain with an example
Can comments be nested?
Why is null pointer used?
What is the difference between multiple and multilevel inheritance in c++?
What happens when a function throws an exception that was not specified by an exception specification for this function?
write the code that display the format just like 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1 6 5 4 3 2 1
What is the best c++ compiler for windows 10?