Definition: A collection of elements stored together in a list-like format. There are two main types of arrays:
Other common names for dynamic arrays:
Basic Dynamic Array Operations:
Fun Fact: Arrays are indexed. This means that every element within the array has a number to represent its position, which can be used for retrieval of elements. The first element is considered to be at index 0, second element at index 1, third at index 2, and so on. Elements may switch indices due to shifting places from insertion, addition, or deletion of elements as shown above.
Commonly Used In:
Other Similar Data Structures: