Is c++ vector dynamic?



Is c++ vector dynamic?..

Answer / Paramjeet Kaur

Yes, the std::vector container in C++ is a dynamic array that can resize itself as elements are added or removed.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is a parameterized type?

1 Answers  


Why can’t you call invariants() as the first line of your constructor?

1 Answers  


How can you quickly find the number of elements stored in a dynamic array? Why is it difficult to store linked list in an array?

1 Answers  


What are static and dynamic type checking?

1 Answers  


Explain what data encapsulation is in c++?

1 Answers  


What is the type of this pointer in c++?

1 Answers  


Which operations are permitted on pointers?

1 Answers  


Explain selection sorting. Also write an example.

1 Answers  


Array base access faster or pointer base access is faster?

1 Answers  


How long will it take to learn programming?

1 Answers  


When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?

1 Answers  


How can virtual functions in c++ be implemented?

1 Answers  


Categories