618
|
1 // #include "stdio.h"
|
|
2 extern int printf(char *const,...);
|
0
|
3
|
618
|
4 // #define UNDECL
|
541
|
5
|
|
6 float f = 3;
|
|
7 float g = 4096.0f;
|
|
8
|
542
|
9 int kk = {-3};
|
|
10
|
541
|
11 int
|
|
12 main2(int i)
|
|
13 {
|
|
14 i+=f;
|
|
15 return +i;
|
|
16 }
|
|
17
|
492
|
18 int
|
0
|
19 alpha(c)
|
|
20 char c;
|
|
21 {
|
|
22 return(('a'<=c&&c<='z')||('A'<=c&&c<='Z')||c=='_');
|
|
23 }
|
|
24 char ch;
|
|
25
|
492
|
26 void main1();
|
|
27 int main0() ;
|
|
28
|
|
29 int
|
0
|
30 main(int ac,char *av[])
|
|
31 {
|
|
32 int i;
|
172
|
33
|
542
|
34 printf("#0031:%d\n",ac);
|
0
|
35 for(i=0;i<ac;i++) {
|
542
|
36 printf("#0033:%s\n",&av[i][3]);
|
0
|
37 }
|
|
38 ch = 'E';
|
442
|
39 main1(-8);
|
542
|
40 printf("#0037:%d\n",main2(3));
|
615
|
41 #ifdef UNDECL
|
|
42 j = k; // undeclared global variable
|
|
43 printf("#0037:%d\n",h);
|
|
44 #endif
|
172
|
45 return main0(ac,ch,av);
|
0
|
46 }
|
|
47
|
492
|
48 int
|
0
|
49 main0(ac,ch,av)
|
|
50 int ac;
|
|
51 char ch;
|
|
52 char *av[];
|
|
53 {
|
|
54 int i;
|
542
|
55 printf("#0048:%d %c\n",ac,ch);
|
0
|
56 for(i=0;i<ac;i++) {
|
542
|
57 printf("#0050:%s\n",&av[i][3]);
|
0
|
58 }
|
542
|
59 printf("#0052:%d==1\n",alpha(ch));
|
172
|
60 return 0;
|
0
|
61 }
|
|
62
|
492
|
63 void
|
442
|
64 main1(int l)
|
|
65 {
|
542
|
66 printf("#0059:%d\n", ((l+0)<-511||(l+0)>511));
|
|
67 if ((l+0)<-511||(l+0)>511) printf("#0060:yes\n");
|
442
|
68 l = -1;
|
542
|
69 printf("#0062:%d\n", l==-1? 555:333);
|
442
|
70 }
|
|
71
|
|
72
|