No output for this code?

#include<iostream>
using namespace std;
bool ispallindrome(char a[],int n,int start)
{
  if (start>=n)
  {
     return true;
  }
  if (a[start]==a[n])
  {
      return ispallindrome(a,n--,start++);

  }
  return false;
}
int main(){
    int n;
    cin>>n;
    char a[1000];
   
    for (int i = 0; i < n; i++)
    {
       cin>>a[i];
    }
    
 
    cout<<ispallindrome(a,n-1,0);
    
    return 0;
}

Hey @sagar_aggarwal
what is the issue ?

Hey @sagar_aggarwal
Mentioned the changes in comments : https://ide.codingblocks.com/s/376320 :slight_smile:

why cant i do it with character array? what is issue using it?

Hey @sagar_aggarwal
Input is integers posibbly greater than 1 digit nos
So that why u cant use char array