What is the Maximum Size that an Array can hold?
Answers were Sorted based on User's Feedback
Answer / alok
Dude in C memory management we have for segments namely
data code heap and stack. any local variable resides in
stack. Hence array should be less than size of stack. Please
refer memory models in C to find stack size. similar is true
for global array. That will reside in data segment.
Is This Answer Correct ? | 4 Yes | 14 No |
Answer / mousam sahu
array is a derived data type which is used to store
different data items of same data type and same purpose
with a common name
array gives static memory allocation it means
the size of array can not be changed during programe
execution .
array index always starts from zero andends at (n-1) if
the array size is n.
Is This Answer Correct ? | 3 Yes | 15 No |
What is the type of 'this' pointer?
Difference between struct and class in terms of access modifier.
How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
Write about the use of the virtual destructor?
What is the c++ code?
What is the difference between "overloading" and "overridding"?
What does asterisk mean in c++?
What are the types of array in c++?
Does c++ support exception handling?
Do class declarations end with a semicolon?
Is c++ map a hash table?