Difference between vector and array

Answers were Sorted based on User's Feedback



Difference between vector and array..

Answer / xxx

vector is also an array but the size of a vector can change
dynamically where in array its fixed.

we can create some reserve space in vector where in array we
cannot.

Is This Answer Correct ?    9 Yes 1 No

Difference between vector and array..

Answer / rdurgalakshmi

Vector manages memory allocations, manages in the sense, it
provides constructor,copy constructor,assignment operator,
destructor etc. whereas array doesn't.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More OOPS Interview Questions

What is multilevel inheritance?

0 Answers  


Where is pseudocode used?

0 Answers  


write a short note on Overloading of Binary Operator?

2 Answers  


Which is the only operator in C++ which can be overloaded but NOT inherited?

8 Answers  


Get me an image implementation program.

0 Answers  






What is polymorphism oop?

0 Answers  


Can we define a class within the interface?

0 Answers  


What is virtual function?where and when is it used?

2 Answers   Sitel,


What is virtual constructors/destructors?

4 Answers   IBS,


What is multilevel inheritance in oop?

0 Answers  


What is abstraction in oops with example?

0 Answers  


what are the disadvantages of C++?

25 Answers   ATS, Infosys, UNI, Wipro,


Categories