回答編集履歴
2
Change the code
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
int list[] = {1, 2, 3, 4, 5};
|
4
4
|
|
5
|
-
for(int I = 0; i < sizeof(list); i++)
|
5
|
+
for(int I = 0; i < sizeof(list) / sizeof(list[0]); i++)
|
6
6
|
|
7
7
|
printf("%d\n", list[i]);
|
8
8
|
|
1
change the code
test
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
for(int I = 0; i < sizeof(list); i++)
|
6
6
|
|
7
|
-
printf("%d", list[i]);
|
7
|
+
printf("%d\n", list[i]);
|
8
8
|
|
9
9
|
|
10
10
|
|