arrays

An array is known as a data structure.

An array usually stores items of data that have the same data type eg INTEGER or STRING or REAL.

Loops can be used to iterate through arrays in order to process them.

Can you remember the three types of loops that you have been studying (hopefully) in your programming career:

  1. count-controlled loops eg FOR loops
  2. pre-condition loops eg WHILE-DO loops
  3. post-condition loops eg REPEAT-UNTIL loops

If you don't feel confident that you understand 1-dimensional arrays yet, please return to Boot Camp!