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

Explain the concept of copy constructor?

712


What is purpose of abstract class?

658


Why is c++ awesome?

659


What are the advantages of using const reference arguments in a function?

704


Is python better than c++?

665






What are the basics of local (auto) objects?

719


Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.

707


Why do we use classes in c++?

678


When there is a global variable and local variable with the same name, how will you access the global variable?

728


What is set in c++?

744


What does catch(…) mean?

721


Which format specifier is used for printing a pointer value?

666


Explain differences between new() and delete()?

702


What do you understand by pure virtual function? Write about its use?

669


What is encapsulation in C++? Give an example.

682