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 is iostream::eof inside a loop condition considered wrong?
Program to check whether a word is a sub-string or not of a string typed
How would you implement a substr() function that extracts a sub string from a given string?
What is the difference between function overloading and operator overloading?
How to allocate memory dynamically for a reference?
What is constructor c++?
Why can’t you call invariants() as the first line of your constructor?
What is the first name of c++?
What is basic if statement syntax?
Which software is best for c++ programming?
what is Loop function? What are different types of Loops?
Describe linkages and types of linkages?
What it is and how it might be called (2 methods).
What is dynamic and static typing?
What is the use of 'using' declaration in c++?