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
Should I learn c++ c?
Why is c++ considered difficult?
Why are pointers not used in c++?
What is scope in c++ with example?
What are the two main components of c++?
What is a .h file c++?
What is setfill c++?
What's the order in which the local objects are destructed?
Which one between if-else and switch is more efficient?
What is DlgProc?
What is the insertion operator and what does it do?
What is a constant? Explain with an example.
What is buffer and example?
Define stacks. Provide an example where they are useful.
Where the memory to the static variables is allocated?