467
|
1 int printf(const char *format, ...);
|
|
2
|
53
|
3
|
|
4 int
|
|
5 main1(int ac,char *av[],int (*f)(),int g())
|
|
6 {
|
|
7 return (*f)(ac)+g(ac);
|
|
8 }
|
|
9
|
|
10 int
|
|
11 g(int k) {
|
|
12 return k+1;
|
|
13 }
|
0
|
14
|
545
|
15 main0(ac,av) // implicit defenition
|
0
|
16 {
|
|
17 return ac;
|
|
18 }
|
545
|
19 int
|
0
|
20 main(ac,av)
|
|
21 int ac;
|
|
22 char *av[];
|
|
23 {
|
|
24 register int i;
|
|
25 register char *p;
|
|
26
|
|
27 p = av[1];
|
545
|
28 if (!p) return 1;
|
0
|
29 i = p[1];
|
|
30 p = p+i;
|
491
|
31 printf("#0030:%d %s\n",i,p-i);
|
|
32 printf("#0031:%d\n",main1(ac,av,g,g));
|
172
|
33 return 0;
|
0
|
34 }
|