Difference between vector and array

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Can abstract class have normal methods?

624


What is constructor in oop?

593


What is balance factor?

597


What is the highest level of cohesion?

587


What is destructor example?

610






what are the ways in which a constructors can be called?

1590


what is the sylabus for priliminaries?

1700


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1706


What is inheritance write a program to show use of inheritance?

621


What are the two different types of polymorphism?

679


Advantage and disadvantage of routing in telecom sector

794


What is polymorphism and its types?

609


Why do pointers exist?

671


What do you mean by overloading?

592


What is polymorphism explain its types?

696