3.1 Data Structure Flashcards
(3 cards)
1
Q
What is an array?
A
An array is a static collection of items of the same data type called elements. Typically used when the required number of data items is known in advance.
2
Q
2 benefits of using arrays
A
- Efficient data storage
- Fast access to elements
3
Q
2 limitations of using arrays
A
- Must be the same data type
- Size of array cannot usually be changed when the program is running