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

is java purely oop Language?

49 Answers   HCL, Infosys, TCS,


Why is abstraction used?

0 Answers  


Input: enter the value:1234 output: 1 2 3 4 write a program to get above output.....

4 Answers   Bally Technologies, IBM, SoftSol,


which are the 4 members functions in c++ objects that can either be declared explicitly by programmer or implementation if nt available.

4 Answers  


What is polymorphism and types?

0 Answers  






Where is pseudocode used?

0 Answers  


what is the technical or oop name of object?

1 Answers  


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

0 Answers  


When you define a integer it gets stored in which data structure?(Stack or a heap)

2 Answers   emc2,


I am developing a payroll system mini project.I used file concept in program for reading and writing.When the program is reloading into the memory that is if i execute next time the file was cleaned and adding data from the starting this is my problem.I want to strore the previous data and if i want to add any record that should be next of previous data.Please help me.

0 Answers  


What is difference between polymorphism and inheritance?

0 Answers  


What is Virtual Keyword?

9 Answers   IBM, NA,


Categories