Mapa mental
arrays

Mind map: arrays in programming
Conteúdo do mapa
arrays
what is an array ?
- An array is one method of storing data in an organised structure
An array stores a set of data elements in a certain order. A data element is any single unit of data within a program. You can tell the program exactly what the names and scores are by writing the following: gameScores = (124, 99, 121, 105, 132) playerName = ("Katie","Patrick","Tom","Rosie","Michael")
Arrays do not store mixed data types. The first array is a collection of numbers showing the five scores. Each data element is an integer. The second array is a collection of names. Each element is a character string.
Each element in an array relates to a specific place in memory. You could imagine this to be like shelves in a cupboard. The array is the cupboard with shelves inside it, and each shelf is numbered and used to hold a specific item.