Flashcards
Arrays
Flashcards do 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
Informações
- Descrição
- Pós-Graduado Data Structure FlashCards sobre Arrays, criado por Bruno Gomes em 02-04-2024.
- Criado por
- Bruno Gomes
- Visualizações
- 1
- Avaliação