What is the Difference between "vector" and "array"?
Answer Posted / vishwa
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 ? | 136 Yes | 17 No |
Post New Answer View All Answers
What is a tree in c++?
What is the difference between a type-specific template friend class and a general template friend class?
How many types of classes are there in c++?
What is the use of "new" operator?
If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?
Explain the isa and hasa class relationships.
When is dynamic checking necessary?
What are default parameters? How are they evaluated in c++ function?
What is the main purpose of overloading operators?
Why is c++ called oops?
what are function pointers?
What is lambda expression c++?
Is c++ a good beginners programming language?
How do you find out if a linked-list has an end?
What is ofstream c++?