これは私のコードです:
typedef struct{
char name[64];
} Cat;
Cat createCat(char name[64]) {
Cat newCat;
int i;
for(i = 0; i < 64; i += 1) {
newCat.name[i] = name[i];
}
return newCat;
}
Cat exampleCat = createCat("Bob");
次のエラーでコンパイルされます。
初期化要素は一定ではありません
私は何が間違っているのですか?