sending or recieving a[][]to a function
can u plz tell me how can I send (or recieve) a[][] to(from) a function .
for example what is the changes that must be done in this program .
Code:
#include <iostream.h>
int **b;
int** change(int **);
int main(){
int a[3][2],i,j;
for(i=0;i<3;i++)
for(j=0;j<2;j++)
cin>>a[i][j];
b=change(a);
for(i=0;i<3;++i){
cout <<'\n';
for(j=0;j<2;++j)
cout <<b[i][j] <<' ' ;}
return 0;}
int** change(int **a){
int i,j;
for(i=0;i<3;i++)
for(j=0;j<2;++j)
if(i==j)
a[i][j]=0;
return (a);}
tnx