#include #include //strcpyを使用するためには、string.hをインクルードする。 int main(void){ char string[10];//10個のchar型を用意→10文字入る→文字列変数 strcpy(string,"hello!"); // string配列にhello!を代入する。 //strcpy →文字配列に文字をコピー(代入)する命令 printf("%s\n",string); //%cが1文字出力。 %sが文字列出力 return 0; }