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
Why do we use string in c++?
Why should we use null or zero in a program?
If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?
What is the size of a vector?
Define pre-condition and post-condition to a member function in c++?
Define stacks. Provide an example where they are useful.
What is the type of 'this' pointer?
Explain the differences between private, public and protected and give examples.
What is problem with overriding functions?
What information can an exception contain?
What are the defining traits of an object-oriented language?
Is swift better than c++?
Is it possible to provide default values while overloading a binary operator?
What are the types of container classes?
Is c++ low level?