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

What is a far pointer? where we use it?

788


Explain function overloading

766


What is iomanip c++?

793


What is c++ hash?

833


Which format specifier is used for printing a pointer value?

755






What is split a string in c++?

893


Is c++ a float?

782


Discuss the possibilities related to the termination of a program before entering the mainq method?

720


What is private, public and protected inheritance?

776


What is struct c++?

730


What are c++ stream classes?

760


Write a program which uses functions like strcmp(), strcpy()? etc

818


What is the difference between a reference and a pointer?

801


In inline " expression passed as argument are evalauated once " while in macro "in some cases expression passed as argument are evaluated more than once " --> i am not getting it plz help to make me understand....

2167


What is stack unwinding?

783