What is the Difference between "vector" and "array"?
Answer Posted / kabitirtha koley
The basic difference between those two are:
1.Vector and Arraylist are grownable or shinkable where are
array is not.
2.Vector and Arraylist are implemented from List interface
where as array is a primitive data type
3.Vector is Synchrnized where as arraylist is not
4.For best performance better to use arraylist than vector
Is This Answer Correct ? | 14 Yes | 4 No |
Post New Answer View All Answers
What are all predefined data types in c++?
What is #include iostream h in c++?
What do you mean by overhead in c++?
What is c++ similar to?
How do you show the declaration of a virtual constructor?
What does n mean in c++?
What is #include sstream?
Why do we use iterators?
Is dev c++ a good compiler?
When is dynamic checking necessary?
What is the difference between #define debug 0 and #undef debug?
What is a syntax in c++?
What is the copy-and-swap idiom?
What is c++ iterator?
Explain the use of virtual destructor?