error in calling multidimensional array in cpp
<pre><code>#include&lt;iostream&gt;
using namespace std;

void print_matrix(int* a, int row, int column)
{
    int i, j;
    for(i=0;i&lt;row;++i)
    {
        cout&lt;&lt;"\n";
        for(j=0;j&lt;column;++j)
        {
            int element= *((a+i*column)+j);
            cout&lt;&lt; element&lt;&lt;" " ;
        }
    }
}

int main()
{
    int row, column;
    row = column=3; 
    column=2;   
    int a[row][column];
    int i, j;
    cout&lt;&lt; "Enter the matrix\n";
    for(i=0;i&lt;row;++i)
    {
        for(j=0;j&lt;column;++j)
        {
            cin&gt;&gt; a[i][j];
        }
    }
    int* r = &amp;a[0][0];
    print_matrix(r, row, column);
    **print_matrix(a, row, column); // error**

    system("pause");
    return 0;
}                                             
</code></pre>

<p>the error is -- cannot convert <code>int (*)[((unsigned int)((int)column))]' to</code>int*' for argument <code>1' to</code>void print_matrix(int*, int, int)' 
Why do i get the error, as i think
the base address " a = &amp;a[0][0] ", So i can call directly instead of having declaring a new int*r ? </p>
