639
|
1
|
|
2 int printf(const char *,...);
|
|
3
|
|
4 #define LEN0 10
|
|
5 #define LEN1 10
|
|
6
|
|
7 typedef int ARRAY[LEN0][LEN1];
|
|
8
|
|
9 int a[LEN0][LEN1];
|
|
10
|
|
11 int
|
|
12 f(ARRAY a)
|
|
13 {
|
|
14 int i,j;
|
|
15
|
|
16 j = a[1][1];
|
|
17 for(i=0;i<LEN0;i++)
|
|
18 for(j=0;j<LEN1;j++)
|
|
19 printf("f %d %d = %d\n",i,j,a[i][j]);
|
|
20
|
|
21 }
|
|
22
|
|
23 int
|
|
24 main()
|
|
25 {
|
|
26 int i,j;
|
|
27 j = a[1][1];
|
|
28
|
|
29 for(i=0;i<LEN0;i++)
|
|
30 for(j=0;j<LEN1;j++)
|
|
31 a[i][j] = i*100 + j;
|
|
32
|
|
33 for(i=0;i<LEN0;i++)
|
|
34 for(j=0;j<LEN1;j++)
|
|
35 printf("m %d %d = %d\n",i,j,a[i][j]);
|
|
36
|
|
37 f(a);
|
|
38 }
|
|
39
|