What is the Difference between "vector" and "array"?

Answer Posted / avinash moras

arrays have definite size and cannot be increased once
declared....whereas the size of vectors can be increased
once it is on the mark to get filled...vectors ae declared
in java.util package*;

Is This Answer Correct ?    10 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c++ fully object oriented?

551


Explain how a pointer to function can be declared in C++?

578


What is c++ hiding?

616


What is virtual table?

608


Write about the access privileges in c++ and also mention about its default access level?

612






What is an undefined behavior and sequence points

563


Explain deep copy?

603


What are dynamic type checking?

610


Why do we need constructors in c++?

610


Why do you use the namespace feature?

642


Describe the syntax of single inheritance in C++?

641


Tell me an example where stacks are useful?

586


What is null pointer and void pointer and what is their use?

582


How will you call C functions from C ++ and vice-versa?

652


How can you create a virtual copy constructor?

578