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

Write a program to reverse a string using recursive function?

0 Answers   TCS,


Prepare me a program for the animation of train

0 Answers  


what is use to destroy an object? illustrate.

5 Answers   TCS,


WAP to generate 2n+1 lines of the following pattern on the computer screen:

2 Answers  


explain sub-type and sub class? atleast u have differ it into 4 points?

0 Answers   Infosys,


What does the keyword "static" mean?

4 Answers   TCS,


Explain polymorphism? What r the types of polymorphism? pls give examples?

4 Answers   HCL,


Why we are use # in begning of programme of c++.

2 Answers   Syntel,


why function overloading is not called as pure polymorphism?

2 Answers  


what is the difference between containership and inheritence?

1 Answers  


write a program to find 2^n+1 ?

0 Answers   CTS,


what is difference between class template and template class?

0 Answers  


Categories