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
Ask to write virtual base class code?
What is the best free c++ compiler for windows?
What is the best way to take screenshots of a window with c++ in windows?
Are there interfaces in c++?
What is the difference between mutex and binary semaphore?
What is anonymous object in c++?
Can constructor be static in c++?
Explain how an exception handler is defined and invoked in a Program.
What is the best c++ book?
What is ofstream c++?
Why use of template is better than a base class?
Should the member functions which are made public in the base class be hidden?
What is a tuple c++?
What does the ios::ate argument do?
What is null and void pointer?