Data structures Flashcards
1
Q
How can we describe an array in the best possible way?
1.The Array shows a hierarchical structure.
2.Arrays are immutable.
3.Container that stores the elements of similar types
4.The Array is not a data structure
A
Container that stores the elements of similar types
*Note: an array is not immutable because while you cannot reseize the array after creating it, you can modify the items inside the array.. Therefore, arrays are mutable. *
https://stackoverflow.com/questions/16125616/are-string-arrays-mutable