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
Is it possible to pass an object of the same class in place of object reference to the copy constructor?
Do you know about latest advancements in C++ ?
How do you clear a buffer in c++?
Describe new operator and delete operator?
find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.
What is the output of the following program? Why?
what is C++ exceptional handling?
What is general form of pure virtual function? Explain?
What do you mean by overhead in c++?
Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers
If you want to share several functions or variables in several files maitaining the consistency how would you share it?
What is the extension of c++?
Do you know what are pure virtual functions?
Describe linkages and types of linkages?
What is a storage class?