私はCでいくつかのコードを書いています:
int main(){
char guess[15];
guess = helloValidation(*guess);
return 0;
}
そして私の機能は:
char[] helloValidation(char* des) {
do {
printf("Type 'hello' : ");
scanf("%s", &des);
}while (strcmp(des, "hello") != 0);
return des
}
しかし、それは私にこのエラーを与えています:
incompatible types in assignment