回答編集履歴
1
抜けてた char を追加
test
CHANGED
@@ -20,9 +20,9 @@
|
|
20
20
|
|
21
21
|
{
|
22
22
|
|
23
|
-
char str1[100] ="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
|
23
|
+
char str1[100] = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
|
24
24
|
|
25
|
-
char str2[1000]="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
|
25
|
+
char str2[1000] = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
|
26
26
|
|
27
27
|
printf("str1は%lu\n", strlen(str1));
|
28
28
|
|
@@ -186,7 +186,7 @@
|
|
186
186
|
|
187
187
|
```C
|
188
188
|
|
189
|
-
str2[1000]; // ="aaaaa...a";
|
189
|
+
char str2[1000]; // ="aaaaa...a";
|
190
190
|
|
191
191
|
```
|
192
192
|
|