I'm new in C and i need to return a matrix form a procedure...
I need to write a matrix on the procedure and return it to main and show it.
what i have is this :
int write_matrix()
{
int matriz[2][2],i,j;
for(i=0;i<2;i++){
for(j=0;j<2;j++){
cin >> matriz[i][j];
}
}
return matriz[][];
}
int main()
{
int matriz[2][2],i,j;
matriz[][] = write_matrix(); ????????????????????
for(i=0;i<2;i++){
for(j=0;j<2;j++){
cout << matrix[i][j];
}
}
system("pause");
return 0;
}