{
int end = strlen(str)-1;
for (int i = 0; i <>
if (*(str+i) != *(str+end))
return false;
return true;
}
Categories
FollowersBlog Archive
Jobs
Find more freelance jobs
|
Saturday, January 19, 2008Find out if a string is a palindrome?
bool Palindrome(char *str)
Subscribe to:
Post Comments (Atom)
|
Popular Posts
|
No comments:
Post a Comment