Difference between vector and array
Answers were Sorted based on User's Feedback
Answer / xxx
vector is also an array but the size of a vector can change
dynamically where in array its fixed.
we can create some reserve space in vector where in array we
cannot.
| Is This Answer Correct ? | 9 Yes | 1 No |
Vector manages memory allocations, manages in the sense, it
provides constructor,copy constructor,assignment operator,
destructor etc. whereas array doesn't.
| Is This Answer Correct ? | 0 Yes | 1 No |
Is abstract thinking intelligence?
What is the difference between pass by reference and pass by value?
How to overload new operator in c++
What is polymorphism programming?
Can we call a base class method without creating instance?
Which is the parameter that is added to every non-static member function when it is called?
What does and I oop mean?
What is advantage of inheritance?
What is a class and object?
what is difference between objects and function
When will a constructor executed?
What is the importance of oop?