isn't my assignment,condition and updation in my for loop correct?,its showing the error on that line
void main()
{ int i,j,n;
char a[10];
printf("\t\tPROGRAM TO CHECK IF A STRING IS PALINDROME OR NOT");
printf("\n\t\t-----------------------------------------------");
printf("\nEnter the string: ");
gets(a);
n=strlen(a);
for(i=0;j=n-1;i<=j;i++;j--){
if(toupper(a[i])!=toupper(a[j])){
printf("The string is not palindrome");
break;
}
}
if(i==j){
printf("\nThe string %s is a palindrome",a);
}
getch();
}