examples\book\digital-artists\chapter3\Listing3.1.ck
// Listing 3.1 Declaring and filling an array of integers the long way

// array declaration (method 1)
int a[7];    // (1) Declares an array of specific length (7)

57 => a[0];  // (2) Sets value stored in the zeroeth element
57 => a[1];
64 => a[2];  // (3)  and
64 => a[3];  //         all
66 => a[4];  //            locations
66 => a[5];
64 => a[6];  // (4) ... up to and including the last element.

<<< a[0], a[1], a[2], a[3], a[4], a[5], a[6] >>>;
home .. language .. program .. examples