642
|
1 #ifndef INLINE
|
|
2 #define INLINE
|
|
3 #endif
|
639
|
4
|
|
5 int printf(const char *,...);
|
|
6
|
|
7 #define LEN0 10
|
642
|
8 #define LEN1 9
|
639
|
9
|
|
10 typedef int ARRAY[LEN0][LEN1];
|
|
11
|
|
12 int a[LEN0][LEN1];
|
|
13
|
642
|
14 INLINE int
|
639
|
15 f(ARRAY a)
|
|
16 {
|
|
17 int i,j;
|
640
|
18 int b[LEN0][LEN1];
|
639
|
19
|
|
20 j = a[1][1];
|
640
|
21 j = b[1][1];
|
|
22
|
639
|
23 for(i=0;i<LEN0;i++)
|
|
24 for(j=0;j<LEN1;j++)
|
|
25 printf("f %d %d = %d\n",i,j,a[i][j]);
|
|
26
|
640
|
27 for(i=0;i<LEN0;i++)
|
|
28 for(j=0;j<LEN1;j++)
|
|
29 b[i][j] = i*100 + j;
|
|
30
|
|
31 for(i=0;i<LEN0;i++)
|
|
32 for(j=0;j<LEN1;j++)
|
|
33 printf("fl %d %d = %d\n",i,j,b[i][j]);
|
639
|
34 }
|
|
35
|
|
36 int
|
|
37 main()
|
|
38 {
|
640
|
39 int b[LEN0][LEN1];
|
|
40
|
639
|
41 int i,j;
|
|
42 j = a[1][1];
|
|
43
|
|
44 for(i=0;i<LEN0;i++)
|
|
45 for(j=0;j<LEN1;j++)
|
|
46 a[i][j] = i*100 + j;
|
|
47
|
|
48 for(i=0;i<LEN0;i++)
|
|
49 for(j=0;j<LEN1;j++)
|
|
50 printf("m %d %d = %d\n",i,j,a[i][j]);
|
|
51
|
640
|
52 for(i=0;i<LEN0;i++)
|
|
53 for(j=0;j<LEN1;j++)
|
|
54 b[i][j] = i*100 + j;
|
|
55
|
|
56 for(i=0;i<LEN0;i++)
|
|
57 for(j=0;j<LEN1;j++)
|
|
58 printf("l %d %d = %d\n",i,j,b[i][j]);
|
|
59
|
|
60
|
639
|
61 f(a);
|
|
62 }
|
|
63
|