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
What is expression parser in c++
Is c++ harder than java?
Explain differences between new() and delete()?
Do you know what are static and dynamic type checking?
Write some differences between an external iterator and an internal iterator?
Can java be faster than c++?
Can member data be public?
What is the difference between an array and a list?
Explain the extern storage classes in c++.
Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be
What is the difference between struct and class?
give me an example for testing a program showing the test path .show how the test is important and complex.
Is c++ built on c?
What is lvalue?
Explain virtual destructor?