Flashcards
Arrays
Cards in this deck (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
Information
- Description
- Pós-Graduado Data Structure Flashcards on Arrays, created by Bruno Gomes on 02/04/2024.
- Created by
- Bruno Gomes
- Views
- 1
- Rating