Debian Codegraph @

examples/book/digital-artists/chapter3/Listing3.1.ck

raw
1 // Listing 3.1 Declaring and filling an array of integers the long way
2
3 // array declaration (method 1)
4 int a[7]; // (1) Declares an array of specific length (7)
5
6 57 => a[0]; // (2) Sets value stored in the zeroeth element
7 57 => a[1];
8 64 => a[2]; // (3) and
9 64 => a[3]; // all
10 66 => a[4]; // locations
11 66 => a[5];
12 64 => a[6]; // (4) ... up to and including the last element.
13
14 <<< a[0], a[1], a[2], a[3], a[4], a[5], a[6] >>>;