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


Please Help Members By Posting Answers For Below Questions

What relational operators if statements in c++?

876


What is virtual methods?

871


what kind of projects are suitable for c and c++

811


What is the difference between a reference and a pointer?

809


What is flush () in c++?

797


What is a dll entry point?

731


What do you mean by stack unwinding in c++?

936


What is object oriented programming (oop)?

844


Differentiate between a copy constructor and an overloaded assignment operator.

835


Is c++ built on c?

754


What is the average salary of a c++ programmer?

762


What are the differences between malloc() and calloc()?

841


what is VOID?

816


Distinguish between a # include and #define.

848


What is a rooted hierarchy?

865