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 difference between equal to (==) and assignment operator (=)?
Differentiate between a constructor and a destructor in c++.
What are function prototypes?
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
What is data types c++?
Difference between overloading vs. Overriding
What is the difference between a baller and a reference in C++?
How do I use arrays in c++?
Is c++ fully object oriented?
Is facebook written in c++?
Explain queue. How it can be implemented?
What is a terminating character in c++?
How do you master coding?
Is dev c++ free?
Is ca high or low level language?