https://ide.codingblocks.com/s/50825 .I made a mistake in my code i am not able to debug can you please tell me what i did wrong in my code kindly debug or tell me my mistake.
Palindrome problem 2 test case is failing
Hey Neeraj, your code is not taking input you can check that by printing array a after taking the input.
Also, in this problem you are getting just a string then why are you taking input n?
modify your main() as shown in the code snippet given below
int main(){
char a[1000];
cin>>a;
if(ispalindrome(a)){
cout<<"true";
}
else{
cout<<"false";
}
}
i got your point thankyou so much i made little mistake