Mapa mental
ARRAYS
Conteúdo do mapa
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)
Informações
- Descrição
- GCSE GCSE Unit 4 Mapa Mental sobre ARRAYS, criado por a St George em 07-05-2022.
- Criado por
- a St George
- Visualizações
- 0
- Avaliação