#include #include int main() { char str1[50] = "Hello, "; char str2[] = "world!"; // str1にstr2を連結する strcat_s(str1, sizeof(str1), str2); // 連結された文字列を表示する printf("連結後の文字列: %s\n", str1); return 0; }