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