#include <stdio.h>
int
main()
{
char *tmp= "a";
const char *tmp2= "b";
strcat(tmp,tmp2);
return 0;
}
というソースを書いたのですがSegmentation faultになってしまいます。
strcatの使い方に間違いがあるのでしょうか?
分かる方お願いします。