#include #include #define SIZE 128 int main(void){ char a[SIZE], b[SIZE], c[SIZE]; printf("単語を二つ入力してください:"); scanf("%s %s", a, b); printf("a = %s\n", a); printf("b = %s\n", b); strcpy(c, a); strcat(c, "-"); strcat(c, b); printf("c = %s\n", c); return 0; }