The language defines two lower-level compound types—arrays and pointers—that are similar to
vectors and iterators. Like a
vector, an array holds a collection of objects of some type. Unlike
vectors, arrays are fixed size; once an array is created, new elements cannot be added. Like iterators, pointers can be used to navigate among and examine the elements in an array.
Modern C++ programs should almost always use
vectors and iterators in preference to the lower-level arrays and pointers. Well-designed programs use arrays and ...