Hi guys, this 2D arrays is not making sense to me. Some how I am just too confused. What am trying to do is average the rows in 2D array and average the columns in the 2D array seperately. Here is the code snippet that I have trouble implementing. The array is declared as Data[5][4].

```
double Mean(const int Data[][4], int r[][4], int c[][4])
{
int Avg[5][4];
int sum=0, i;
for(int r=0; r<5; r++)
for(int c=0; c<4;c++)
Avg[r][c]= r[r][c]+c[r][c];
return sum;
}
```

Any help is appreciated.

Thanks.