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

Do inline functions improve performance?

809


Difference between Abstraction and encapsulation in C++?

801


Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.

837


What is the difference between *p++ and (*p)++ ?

969


write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.

2443






What c++ library is string in?

771


What is ofstream c++?

800


How is computer programming useful in real life?

767


Does a derived class inherit or doesn't inherit?

809


Why is c++ still used?

779


What are the basic data types used in c++?

748


Incase of a function declaration, what is extern means?

697


Explain rethrowing exceptions with an example?

767


Why is c++ a mid-level programming language?

773


Program to check whether a word is a sub-string or not of a string typed

1778