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

Answer Posted / guest

a vector is also like an array i.e sequentially accessed but
we can increase/decrease size of a vector in a simple way
than it is done for arrays.

Is This Answer Correct ?    79 Yes 39 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does c++ vector allocate memory?

744


What is late binding c++?

742


What is malloc in c++?

757


Do vectors start at 0?

771


How many ways can a variable be initialized into in C++?

802


Is java made in c++?

799


How do you clear a set in c++?

814


What is heap sort in c++?

865


What is the protected keyword used for?

860


How can you tell what shell you are running on unix system?

873


How to demonstrate the use of a variable?

857


What is general format for a prototype?

815


Mention the ways in which parameterized can be invoked.

732


What are the advantages of prototyping?

810


describe private access specifiers?

868