comparison test/simp.c @ 172:096559f07a70

some check
author kono
date Tue, 25 Nov 2003 11:47:41 +0900
parents d35df41eac69
children 0c256ea2a97e
comparison
equal deleted inserted replaced
171:3902240d4930 172:096559f07a70
8 char ch; 8 char ch;
9 9
10 main(int ac,char *av[]) 10 main(int ac,char *av[])
11 { 11 {
12 int i; 12 int i;
13
13 printf("%d\n",ac); 14 printf("%d\n",ac);
14 for(i=0;i<ac;i++) { 15 for(i=0;i<ac;i++) {
15 printf("%s\n",av[i]); 16 printf("%s\n",&av[i][3]);
16 } 17 }
17 ch = 'E'; 18 ch = 'E';
18 main0(ac,ch,av); 19 return main0(ac,ch,av);
19 } 20 }
20 21
21 main0(ac,ch,av) 22 main0(ac,ch,av)
22 int ac; 23 int ac;
23 char ch; 24 char ch;
24 char *av[]; 25 char *av[];
25 { 26 {
26 int i; 27 int i;
27 printf("%d %c\n",ac,ch); 28 printf("%d %c\n",ac,ch);
28 for(i=0;i<ac;i++) { 29 for(i=0;i<ac;i++) {
29 printf("%s\n",av[i]); 30 printf("%s\n",&av[i][3]);
30 } 31 }
31 printf("%d==1\n",alpha(ch)); 32 printf("%d==1\n",alpha(ch));
33 return 0;
32 } 34 }
33 35