回答編集履歴
1
追記
test
CHANGED
@@ -23,3 +23,27 @@
|
|
23
23
|
}
|
24
24
|
|
25
25
|
```
|
26
|
+
|
27
|
+
あるいは:
|
28
|
+
|
29
|
+
```C
|
30
|
+
|
31
|
+
void print_array(const int a[], int n) {
|
32
|
+
|
33
|
+
int i;
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
printf("{");
|
38
|
+
|
39
|
+
for (i = 0; i < n; i++) {
|
40
|
+
|
41
|
+
printf( i == 0 ? "%d":", %d", a[i]);
|
42
|
+
|
43
|
+
}
|
44
|
+
|
45
|
+
printf("}");
|
46
|
+
|
47
|
+
}
|
48
|
+
|
49
|
+
```
|