Fichas
Arrays
Fichas del conjunto (3)
- 1Explain how arrays work and how can we get access to its elementsCollection of elements stored in sequence and where each element is identified and accessed by an index.
- 2What are the two types of sized arrays?And what are the differences?The two types are:
Static sized
- determined at compile time;
- cannot be changed;
+ perfomance;
- memory use;
Dynamic sized
- determined at runtime;
- can grow, shrink;
+ flexibility; - 3When to use fixed or dynamic sized arrays?You should use fixed arrays, when you have an small collection of static value, like days of the week.
Dynamic arrays should be used when you want to store/manipulate a list of objects
Información
- Descripción
- Pós-Graduado Data Structure Fichas sobre Arrays, creado por Bruno Gomes el 02/04/2024.
- Creado por
- Bruno Gomes
- Visitas
- 1
- Valoración