argument of type "int" is incompatible with parameter type "int **"
<p>I'm writing a 2d array program and i'm having issues getting it to print out, I'm not sure if i'm doing my 2d array passing correct now as its crashing instead of running at all.  Any advice would be helpful</p>

<pre><code>void initialize(int* one, int** two);
void replace(int* arr,int rows, int cols,int value);
void fill(int* arr, int rows, int cols);
void print(int** arr, int rows, int cols);

ofstream outfile;
ifstream infile;
int arrayOne[100][100];
int arrayTwo[100][100];

int main(){

    int rows,cols=0;

    cout &lt;&lt; "Please input how many rows you would like in the array:  ";
    cin &gt;&gt; rows;
    cout &lt;&lt; "Please input how many columns you would like in the array:  ";
    cin &gt;&gt; cols;

    fill(arrayOne[100][100],rows,cols);
    //print(arrayOne[100][100],rows,cols);

    system("pause");
    return 0;
}

void initialize(int* one, int* two){
    for(int i=0;i&lt;100;i++){
        for(int j=0;j&lt;100;j++){
            arrayOne[i][j]=0;
            arrayTwo[i][j]=0;
        }
    }
}

void replace(int* arr,int rows,int cols,int value){
    arr[rows][cols]=value;
}

void fill(int* arr, int rows, int cols){
    int i=0;
    for(int r=0; r &lt; rows; r++){
        for(int c=0; c &lt; cols; c++){
            replace(arr,r,c,i++);
        }
    }
}

void print(int** arr, int r, int c){
    for(int i=0;i&lt;r;i++){
        for(int j=0;j&lt;c;j++){
            cout &lt;&lt; arr[i][j] &lt;&lt; " ";
        }
        cout &lt;&lt; endl;
    }
}
</code></pre>
