Lecture 3 Arrays

Lecture 3: Arrays 2 1 Using Arrays When t is a type, then t[] is the type of an array with elements of type t. Note that t is arbitrary: we can have an array of integers (int[]), and anarray of booleans (bool[]) or an array of arrays of characters (char[][]).This syntax for the type of arrays … ................
................