Mindmap
ARRAYS
Inhalt der Mindmap
ARRAYS
A data structure which holds a set (list) of data items of the same data type.
It is assigned a name, a size (no. of data items to be stored) and a data type.
- Example: An integer type array called quizScores of size 6 is declared and initialised below:
- Declaration only:
- int[] quizScores
- Declared,, Created & Initialised:
- int[] quizScores = {23, 29, 18, 24, 16}
- Declaration & Creation
- int[] quizScores = new int[6]
- Declaration only:
- Example: An integer type array called quizScores of size 6 is declared and initialised below:
Positions in an array always start at 0.
- An array of 10 items will have positions from 0 to 9
The computer reserves a set of memory locations for each element of an array. They will be next to each other (contiguous)
Informationen
- Beschreibung
- GCSE GCSE Unit 4 Mindmap am ARRAYS, erstellt von a St George am 07/05/2022.
- Erstellt von
- a St George
- Aufrufe
- 0
- Bewertung