#include<iostream>
using namespace std;
void print_matrix(int* a, int row, int column)
{
    int i, j;
    for(i=0;i<row;++i)
    {
        cout<<"\n";
        for(j=0;j<column;++j)
        {
            int element= *((a+i*column)+j);
            cout<< element<<" " ;
        }
    }
}
int main()
{
    int row, column;
    row = column=3; 
    column=2;   
    int a[row][column];
    int i, j;
    cout<< "Enter the matrix\n";
    for(i=0;i<row;++i)
    {
        for(j=0;j<column;++j)
        {
            cin>> a[i][j];
        }
    }
    int* r = &a[0][0];
    print_matrix(r, row, column);
    **print_matrix(a, row, column); // error**
    system("pause");
    return 0;
}                                             
the error is -- cannot convert int (*)[((unsigned int)((int)column))]' toint*' for argument 1' tovoid print_matrix(int*, int, int)' 
Why do i get the error, as i think
the base address " a = &a[0][0] ", So i can call directly instead of having declaring a new int*r ? 
 
     
     
    