What is the Difference between "vector" and "array"?
Answer Posted / saroj das ,
as we know in C++ the size of array is fixed in compile
time .so the size of array cannot be adjusted at run time
to accommodate changeling program .
but vector can solve this problem allocating memory as
needed. although vector is dynamic
| Is This Answer Correct ? | 48 Yes | 10 No |
Post New Answer View All Answers
Why do we use the using declaration?
What are the comments in c++?
Is there finally in c++?
What is an html tag?
Discussion on error handling of C++ .
Differentiate between declaration and definition.
What are maps in c++?
What is auto used for in c++?
Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.
Give example of a pure virtual function in c++?
What is difference between rand () and srand ()?
What is the best c c++ compiler for windows?
Write a function to find the nth item from the end of a linked list in a single pass.
What is data structure in c++?
What are keywords in c++?