Difference between vector and array

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a mixin and inheritance?

738


What is object in oop?

874


What is debug class?what is trace class? What differences are between them? With examples.

1850


What is encapsulation c#?

807


What are objects in oop?

825


What is the difference between static polymorphism and dynamic polymorphism?

842


What are different oops concepts?

775


to find out the minimum of two integer number of two different classes using friend function

1869


Is data hiding and abstraction same?

769


Which type does string inherit from?

832


How do you answer polymorphism?

794


Can you inherit a private class?

840


What do you mean by abstraction?

812


What is a superclass in oop?

907


Write a program to sort the number with different sorts in one program ??

2110