Sorted array Problem

Why all testcase are not passed in my code.Plz tell the error in my code

Hey @Alfred

bool sortedarray(long int a[],int n){ //long here because u created long int array
	if(n==1){
		return true;
	}
    if(a[0]<=a[1] && sortedarray(a+1,n-1)){ //<= here
		return true;
	}
	return false;
}

plzz help in this code

Hey @Alfred
I already told u the corrections
what are u not able to understand