A place where you can share ideas to do a better programming.
A better code.
A better world :)
Saturday, July 26, 2008
Palindrome
int palindrom(const char *str) { int len; int i; len = strlen(str); len--; for(i=0; i < len;i++,len--) if(str[i]!=str[len]) return 1;//not a palindrome return 0;//a palindrome }
No comments:
Post a Comment