What is the Difference between "vector" and "array"?
Answer Posted / vivek
in vector space is not fixed,but in array space is fixed
second vector has memory allocation is dynamic which is
unsuitable at execution time but in array memory allocation
is continuously
array contain same datatype it is not in vector
array has compatibility to use 2d,3d arrayalso
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is the purpose of templates in c++?
What is vector string in c++?
How can I disable the "echo" feature?
Define a constructor?
Is c or c++ more useful?
What is the difference between structures and unions?
Is string an object in c++?
Explain linear search.
Explain static and dynamic memory allocation with an example each.
What does the ios::ate argument do?
What is an inclusion guard?
What are containers in c++?
How should runtime errors be handled in c++?
What are the implicit member functions of class?
Can you sort a set c++?