Karteikarten
Arrays
Karten in diesem Stapel (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
Informationen
- Beschreibung
- Pós-Graduado Data Structure Karteikarten am Arrays, erstellt von Bruno Gomes am 02/04/2024.
- Erstellt von
- Bruno Gomes
- Aufrufe
- 1
- Bewertung