467
|
1 int printf(const char *format, ...);
|
|
2
|
|
3
|
249
|
4 int
|
|
5 i(int a,int b,int c,int d,int f)
|
|
6 {
|
491
|
7 printf("#0006:i(%d,%d,%d,%d,%d)\n",a,b,c,d,f);
|
249
|
8 return a+b+c+d+f;
|
|
9 }
|
|
10
|
|
11 short
|
|
12 s(short a,short b,short c,short d,short f)
|
|
13 {
|
491
|
14 printf("#0013:s(%d,%d,%d,%d,%d)\n",a,b,c,d,f);
|
249
|
15 return a+b+c+d+f;
|
|
16 }
|
|
17
|
|
18 char
|
252
|
19 ch(char a,char b,char c,char d,char f)
|
249
|
20 {
|
491
|
21 printf("#0020:ch(%d,%d,%d,%d,%d)\n",a,b,c,d,f);
|
249
|
22 return a+b+c+d+f;
|
|
23 }
|
|
24
|
|
25
|
|
26 float
|
|
27 f(float a,float b,float c,float d,float f)
|
|
28 {
|
491
|
29 printf("#0028:f(%g,%g,%g,%g,%g)\n",a,b,c,d,f);
|
249
|
30 return a+b+c+d+f;
|
|
31 }
|
|
32
|
|
33 double
|
|
34 d(double a,double b,double c,double d,double f)
|
|
35 {
|
491
|
36 printf("#0035:d(%g,%g,%g,%g,%g)\n",a,b,c,d,f);
|
249
|
37 return a+b+c+d+f;
|
|
38 }
|
|
39
|
|
40 long long
|
|
41 l(long long a,long long b,long long c,long long d,long long f)
|
|
42 {
|
491
|
43 printf("#0042:l(%lld,%lld,%lld,%lld,%lld)\n",a,b,c,d,f);
|
249
|
44 return a+b+c+d+f;
|
|
45 }
|
|
46
|
|
47
|
|
48 int
|
|
49 i0()
|
|
50 {
|
|
51 int a,b,c;
|
|
52 a=3;
|
|
53 b=-3;
|
|
54 c=5;
|
|
55 c = i(a*3,b*c,b+c,b/c,b-c);
|
491
|
56 printf("#0055:int: %d\n",c);
|
249
|
57 }
|
|
58
|
|
59 int
|
|
60 g()
|
|
61 {
|
|
62 float a,b,c;
|
|
63 a=3.0;
|
|
64 b=-3.0;
|
|
65 c=5.0;
|
|
66 c = f(a*3,b*c,b+c,b/c,b-c);
|
491
|
67 printf("#0066:float: %g\n",c);
|
249
|
68 }
|
|
69
|
|
70 int
|
|
71 h()
|
|
72 {
|
|
73 double a,b,c;
|
|
74 a=3.0;
|
|
75 b=-3.0;
|
|
76 c=5.0;
|
|
77 c = d(a*3,b*c,b+c,b/c,b-c);
|
491
|
78 printf("#0077:double: %g\n",c);
|
249
|
79 }
|
|
80
|
|
81 int
|
|
82 h1()
|
|
83 {
|
|
84 long long a,b,c;
|
|
85 a=3;
|
|
86 b=-3;
|
|
87 c=5;
|
|
88 c = l(a*3,b*c,b+c,b/c,b-c);
|
491
|
89 printf("#0088:long long: %lld\n",c);
|
249
|
90 }
|
|
91
|
|
92 int
|
|
93 c1()
|
|
94 {
|
|
95 char a,b,c;
|
|
96 a=3;
|
|
97 b=-3;
|
|
98 c=5;
|
252
|
99 c = ch(a*3,b*c,b+c,b/c,b-c);
|
491
|
100 printf("#0099:char: %d\n",c);
|
249
|
101 }
|
|
102
|
|
103 int
|
|
104 s1()
|
|
105 {
|
|
106 short a,b,c;
|
|
107 a=3;
|
|
108 b=-3;
|
|
109 c=5;
|
|
110 c = s(a*3,b*c,b+c,b/c,b-c);
|
491
|
111 printf("#0110:short: %d\n",c);
|
249
|
112 }
|
|
113
|
|
114 main()
|
|
115 {
|
|
116 i0();
|
|
117 g();
|
|
118 h();
|
|
119 h1();
|
|
120 return 0;
|
|
121 }
|