void isPalindrome(char *string)
{
char *start, *end;
if(string)
{
start = string;
end = string + strlen(string) - 1;
while((*start == *end) && (start!=end))
{
if(start
if(end>start)end--;
}
if(*start!=*end)
{
printf("\n[%s] - This is not a palidrome!\n", string);
}
else
{
printf("\n[%s] - This is a palidrome!\n", string);
}
}
printf("\n\n");
}
No comments:
Post a Comment