modernc.org/ccgo/v3@v3.16.14/lib/testdata/tcc-0.9.27/tests/tests2/38_multiple_array_index.c (about) 1 #include <stdio.h> 2 3 int main() 4 { 5 int a[4][4]; 6 int b = 0; 7 int x; 8 int y; 9 10 for (x = 0; x < 4; x++) 11 { 12 for (y = 0; y < 4; y++) 13 { 14 b++; 15 a[x][y] = b; 16 } 17 } 18 19 for (x = 0; x < 4; x++) 20 { 21 printf("x=%d: ", x); 22 for (y = 0; y < 4; y++) 23 { 24 printf("%d ", a[x][y]); 25 } 26 printf("\n"); 27 } 28 29 return 0; 30 } 31 32 /* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/