#include
#include
#include
#define M 10
/* run this program using the console pauser or add your own getch, system("pause") or input loop /
/*238-6.编写判断字符串是否为回文的函数,并按书中要求输出对应结果。/
void plalindrome(char s)
{
int a=1,i=0,n;
n=strlen(s);
for(i=0;i<n/2;i++)
{
if((s+i)!=*(s+n-1-i))
{
a=0;
break;
}
}
if(a==0)
{
printf("NO");
}
else
{
printf("YES");
}
}
int main(int argc, char *argv[])
{
char str[M],*s;
memset(str,0x0,M);
scanf("%[^\n]",str);
strcat(str,"\0");
printf("%d\n",sizeof(str));
s=str;
plalindrome(s);
return 0;
}