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 reference variable in C++?

724


Is c++ high level programming language?

736


A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

3309


What is the use of seekg in c++?

668


What do you mean by storage classes?

892






Which is best c++ or java?

707


What is the use of c++ programming language in real life?

635


What is static in c++?

660


What are the methods of exporting a function from a dll?

713


We use library functions in the program, in what form they are provided to the program?

668


Which compiler does turbo c++ use?

670


Will the following program execute?

669


Define a constructor?

662


What does floor mean in c++?

648


What is the difference between struct and class?

835