The error usually occurs when I run the code. I'm a beginner to C programmer. I personally think that I made the mistake at the if statement after I printed and copied "word".
char word[10]="hih",word1[10],i,j;
for(i=0;i<10;i++)
{
printf("%c", word[i]);
}
printf("\n");
for(j=10;j>=0;j--)
{
printf("%c", word1[j]);
}
printf("\n");
if(word==word1)
{
printf("The word entered is a Palindrome word.");
}
else
{
printf("The word entered is not a Palindrome word.");
}
return 0;
}
This is the error that I get: