I DONT KNOW WHAT THE MISTAKE IS WITH MY CODE FOR CHECKING PALINDROME INTERGER ARRAY

Hey @varun1928.joshi

 #include<iostream>
using namespace std;
int ispal(int n[1000],int s,int e){
	if(s>=e){
		return 1;
	}
	if(n[s]==n[e]){
		return ispal(n,s+1,e-1); //added return 
	}
	return 0; //because didnt matched 
}
int main() {
	int size;
	cin>>size;
	int n[1000];
	for(int i=0;i<size;i++){
		cin>>n[i];
	}
	if(ispal(n,0,size-1)){
		cout<<"true"<<endl;
	}
	else cout<<"false"<<endl;
}

Hey @varun1928.joshi
If the above resolves your query then please mark it as resolved :slight_smile: