/* -------------------------------------------------- 文字列の表示 printf-mojiretu.c -------------------------------------------------- */ #include main() { char moji[100]="文教大学"; printf("\n"); printf("文字は %s \n",moji); printf("\n"); /* 以下の書き方はダメ char moji[100]; moji="文教大学"; */ }