Mind map
ARRAYS
Map content
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)
Information
- Description
- GCSE GCSE Unit 4 Mind Map on ARRAYS, created by a St George on 07/05/2022.
- Created by
- a St George
- Views
- 0
- Rating