#include#includemain(){ char str[30],*p=str; int i,j; printf("input a string:\n"); gets(str); j=strlen(p)-1; for(i=0;i if(*(p+i)!=*(p+j)) {printf("该字符串不是回文串\n"); return 0;} printf("该字符串是回文串\n");}