What is the Difference between "vector" and "array"?
Answer Posted / vivek
in vector space is not fixed,but in array space is fixed
second vector has memory allocation is dynamic which is
unsuitable at execution time but in array memory allocation
is continuously
array contain same datatype it is not in vector
array has compatibility to use 2d,3d arrayalso
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is a tuple c++?
Why is null pointer used?
What is a tree in c++?
Can we use this pointer in a class specific, operator-overloading function for new operator?
Explain terminate() function?
Explain what are accessor methods?
What is encapsulation in c++?
Write syntax to define friend functions in C++.
Explain one method to process an entire string as one unit?
Explain the pure virtual functions?
What are the various access specifiers in c++?
What is a c++ vector?
Is c++ a float?
Write a program to find the reverse Fibonacci series starting from N.
What are the benefits of oop in c++?