Skip to content

1-D arrays

DECLARE an array

  • An array stores many values under one name.
  • DECLARE Score : ARRAY[1:5] OF INTEGER makes room for 5 integers.
  • The numbers 1:5 are the first and last index.

A 1-D array Score with five cells; the index runs 1 to 5, so Score[1] is the first value

Log in or create account

IGCSE & A-Level