2 Purpose: To illustrate the relationship between two-dimensional
4 Dr. Purdum, August 21, 2012
10 Serial.begin(9600); // Serial link to PC
14 static char days[DAYSINWEEK][CHARSINDAY] =
16 "Sunday", "Monday", "Tuesday","Wednesday",
17 "Thursday", "Friday", "Saturday" };
21 base = days[0]; // Different for N-rank arrays where N > 1
22 for (i = 0; i < DAYSINWEEK; i++) {
23 ptr = base + (i * CHARSINDAY);
24 Serial.print((int) ptr); // Show the lvalue
26 for (j = 0; *ptr; j++) {
27 Serial.print(*ptr++); // Show one char