#include#include int is_palindrome(char* para_str , int len); int main(int argc , char* argv[]) { int n = atol(argv[2]); if (is_palindrome(argv[1],n)) printf("this string is palindrome !\n"); return 0; } int is_palindrome(char* para_str , int len) { printf("Length: %d \n",len); printf("%c ----- %c\n",para_str[0],para_str[len-1]); if (len == 0 || len == 1) return 1; else return((para_str[0] == para_str[len-1]) ? is_palindrome(++para_str,len-2) : 0); }