int **split_array(const int *s, int length) {
    int **arr = (int **)malloc(sizeof(int)*length);
    arr[0] = (int *) malloc(sizeof(int)* length/2);
    arr[1] = (int *) malloc(sizeof(int)* length/2);
    for(int i = 0; i < length; i++){
        if(i%2 == 0){
            arr[0][i] = s[i];
        }
        if(i%2 == 1){
            arr[1][i] = s[i];
        }
    }
    return arr;
}
How can I assign arr[0][i] to s[i]