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 is the identity function in c++? How is it useful?
What is the difference between object-oriented programming and procedural programming?
What is different in C++, compare with unix?
If dog is a friend of boy, is boy a friend of dog?
What is anonymous object in c++?
What is meant by iomanip in c++?
What is c++ hiding?
What are the two types of comments?
What is the use of 'this' pointer?
Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()
Describe friend function & its advantages.
Explain the use of virtual destructor?
What are stacks? Give an example where they are useful.
What is a class definition?
How do you remove an element from a set in c++?