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 relational operators if statements in c++?
What is virtual methods?
what kind of projects are suitable for c and c++
What is the difference between a reference and a pointer?
What is flush () in c++?
What is a dll entry point?
What do you mean by stack unwinding in c++?
What is object oriented programming (oop)?
Differentiate between a copy constructor and an overloaded assignment operator.
Is c++ built on c?
What is the average salary of a c++ programmer?
What are the differences between malloc() and calloc()?
what is VOID?
Distinguish between a # include and #define.
What is a rooted hierarchy?