この関数の定義には致命的な間違いがあるみたいなので間違いと解決方法を教えてください。
char *str_concat(char *s1, char *s2){
char s3[256];
char *p = s3;
while (*p++ = *s1++);
p -= 1;
while(*p++ = *s2++);
return s3;
}
回答4件
あなたの回答
tips
プレビュー
投稿2017/08/02 18:00
この関数の定義には致命的な間違いがあるみたいなので間違いと解決方法を教えてください。
char *str_concat(char *s1, char *s2){
char s3[256];
char *p = s3;
while (*p++ = *s1++);
p -= 1;
while(*p++ = *s2++);
return s3;
}
回答4件
あなたの回答
tips
プレビュー