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 jump statement in C++?
What parameter does the constructor to an ofstream object take?
What do you mean by overhead in c++?
What is one dimensional array in c++?
Is c# written in c++?
What is using namespace std in cpp?
How can you specify a class in C++?
What are the two types of comments?
What is the best c++ compiler for windows 10?
A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Are strings mutable in c++?
What is string in c++ programming?
Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list
Why is polymorphism useful?
What are static variables?