Data Structure and Object-Oriented Programming: Vectors in C++
Data Structure and Object-Oriented Programming: Vectors in C++
Programming
Vectors in C++
• Vectors in C++ are the dynamic
arrays that are used to store data.
• Unlike arrays, which are used to
store sequential data and are static
in nature, Vectors provide more
flexibility to the program.
Introduction • Vectors can resize
automatically when an element is
itself