私はdelete構造体の配列に関数booksを持っています。私はそれにレコードの配列を渡してauthor of bookいname of bookますsize of the list。
ここでlist[0].authorandlist[5].authorとauthorall が "Dan Brown" (同じ文字列) と等しいとすると
void delete(struct books *list,char author[],char name[],int n)
{
int i,a;
a=strcmp(list[0].author,list[5].author);
printf("%d\n",a); // prints 0
a=strcmp(list[0].author,author);
printf("%d\n",a); // prints other than 0
}
なぜそれが起こっているのですか?ここで何が問題なのですか?