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 name mangling?
What is static in c++?
Describe about storage allocation and scope of global, extern, static, local and register variables?
What are the rules about using an underscore in a c++ identifier?
What C++ libraries are you proficient with?
Is it possible to pass an object of the same class in place of object reference to the copy constructor?
What are vtable and vptr?
Write the program form Armstrong no in c++?
What is a linked list in c++?
What is ios class in c++?
Why struct is used in c++?
Can a new be used in place of old mallocq? If yes, why?