i have this problem with returning from function.
it's a search function, it should return 1 if the function find the value that i give but No, it's returning the 0 instead of 1. (sorry for my bad english.)

```
int rech(int tab[],int n,int i,int r){
    if(i<n){
        if(tab[i]==r){
            return 1;
        }
        i++;
        rech(tab,n,i,r);
    }

    return 0;
}

int main(int argc, char** argv) {
    int tab[5]={1,2,3,4,5};
    printf("%d",rech(tab,5,0,2));
    return 0;
}

```