previous |
start |
next
Arrays
- A second mechanism for collecting elements of
the same type is using arrays.
- Arrays are a lower-level abstraction than
vectors, so they are less convenient.
- Example: Arrays cannot be resized.
- Vectors are a recent addition to C++, so many
older programs use arrays instead.
- Arrays are faster and more efficient than
vectors.
previous |
start |
next