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

Answer Posted / vishwa

vector is also an array but the size of a vector can change
dynamically where in array its fixed.

we can create some reserve space in vector where in array we
cannot.

Is This Answer Correct ?    136 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different types of loops in c++?

734


What's the hardest coding language?

647


What is ios flag in c++?

770


What is different in C++, compare with unix?

699


Is c++ a difficult language?

664






What is an adjust field format flag?

762


How to get the current position of the file pointer?

645


What is recursion?

743


Differentiate between realloc() and free().

674


What is meant by a delegate?

714


What is the difference between the compiler and the preprocessor?

720


What apps are written in c++?

703


What is do..while loops structure?

715


what is oops and list its features in c++?

643


What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0

665