recursive palindrome function this is me solution of the question there a mistack in my solution the not palindrome part is not printing
#include<iostream>
#include<cstring>
using namespace std;
bool ispalindrome( char string1[],int length);
int main()
{
string word;
cout<<"Enter a word: ";
cin>> word;
if(ispalindrome)
cout<<"The input word is palindrome";
else
cout<<"The input word is NOT palindrome";
return 0;
}
bool ispalindrome( char string1[],int length)
{
if(length<=1)
return true;
if ((*string1)==string1[length-1])
return ispalindrome(string1+1, length-2);
else return false;
}