21. Arrays
One-dimensional arrays:
int x[3];
The elements are: x[0], x[1], x[2]
for( i = 0; i < 3; ++i)
{
/* use x[i] ... */
}
Two-dimensional arrays:
int a[2][3];
The elements are:
a[0][0], a[0][1], a[0][2],
a[1][0], a[1][1], a[1][2]
a[0] is a pointer to the first row.
a[1] is a pointer to the second row.