Arrays
Contents
Arrays#
Arrays are fixed-length structures of elements of identical data type, accessible by consecutive index numbers.
Arrays are collections of items#
// DECLARE {identifier} : ARRAY[l:u] OF {data type} DECLARE StudentNames : ARRAY[1:3] OF STRING // Access and assign array item by number index in square bracket StudentNames[1] ← "Jim" StudentNames[2] ← "Tony" StudentNames[3] ← "Bob" OUTPUT "First StudentName: ", StudentNames[1]