質問編集履歴
1
ソースコードの記入ミス
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,33 +28,31 @@
|
|
28
28
|
|
29
29
|
```c++
|
30
30
|
|
31
|
-
|
31
|
+
int count(char *a,char *b) {
|
32
32
|
|
33
|
-
int count
|
33
|
+
int i, count = 0;
|
34
34
|
|
35
|
-
|
35
|
+
strcat(a, b);
|
36
36
|
|
37
|
-
|
37
|
+
for (i = 0; a = "\0"; i++) {
|
38
38
|
|
39
|
-
|
39
|
+
count++;
|
40
40
|
|
41
|
+
}
|
42
|
+
|
41
|
-
count
|
43
|
+
return(count);
|
42
44
|
|
43
45
|
}
|
44
46
|
|
45
|
-
|
47
|
+
int main(void) {
|
46
48
|
|
47
|
-
}
|
49
|
+
char x = { "hello" };
|
48
50
|
|
49
|
-
|
51
|
+
char y = { "usa" };
|
50
52
|
|
51
|
-
|
53
|
+
printf("mojisuu=%p", count);
|
52
54
|
|
53
|
-
char y={“usa”};
|
54
|
-
|
55
|
-
printf(“mojisuu=%d”,count);
|
56
|
-
|
57
|
-
return
|
55
|
+
return(0);
|
58
56
|
|
59
57
|
}
|
60
58
|
|