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 advantages of using friend classes?
Implement stack operations with pointers with appropriate exception checks.
Explain the concept of copy constructor?
Difference between pointer to constant and constant pointer to a constant. Give example.
Write a program using display() function which takes two arguments.
Differentiate between an array and a list?
What do you mean by global variables?
Does improper inheritance have a potential to wreck a project?
Why are pointers used?
What is operators in c++?
write a corrected statement in c++ so that the statement will work properly. x = y = z + 3a;
Can we delete this pointer in c++?
What is the difference between reference and pointer?
What is the array and initializing arrays in c++?
What is c++ similar to?