What is my error in this palindromic code

#include
#include
using namespace std;
void pallindrome(char a[]){
bool ispallindrome=true;
int i=0;
int j=strlen(a);
while(i<j){
if(a[i]==a[j]){
i++;
j–;
}else{
ispallindrome=false;
}
}
if(ispallindrome==true){
cout<<“True”;
}else{
cout<<“False”;
}
}
int main() {
char a[1000];
cin>>a;
pallindrome(a);
}

hi @shivamm2110
once u get its not palindrome print there an return form the function