What is the Maximum Size that an Array can hold?
Answer Posted / 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 |
Post New Answer View All Answers
Explain one method to process an entire string as one unit?
how to access grid view row?
How many types of comments are there in c++?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
What is null pointer and void pointer and what is their use?
What is difference between class and function?
How do you invoke a base member function from a derived class in which you have not overridden that function?
Can we make copy constructor private in c++?
Where can I run c++ program?
Write about the scope resolution operator?
What is the difference between structures and unions?
What is :: operator in c++?
How do we implement inheritance in c++?
What do you mean by global variables?
What is c++ runtime?