the function, IsPalindrome is recursive. it checks character array from 0 to end of it.
i have warning message control reaches end of non-void function...
whats wrong with this code?
int main()
{
length = strlen(string);
boolean = IsPalindrome(string, 0, length);
...
}
int IsPalindrome (char* string, int left, int right)
{
if (left >= right)
{
return TRUE;
}
if (string == string)
{
return IsPalindrome(string, left+1, right-1);
}
if (string != string)
{
return FALSE;
}
}