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
Is multimap sorted c++?
daily Routine of father
Tell me can a pure virtual function have an implementation?
What is basic if statement syntax?
what is a reference variable in C++?
What is the difference between new() and malloc()?
Define basic type of variable used for a different condition in C++?
Where is atoi defined?
What does the linker do?
Define pre-condition and post-condition to a member function in c++?
What is the difference between multiple and multilevel inheritance in c++?
Write is a binary search tree? Write an algo and tell complexity?
Which bitwise operator is used to check whether a particular bit is on or off?
Why is c++ so fast?
which operator is used for performing an exponential operation a) > b) ^ c) none