addition of 2 multidimentional arrays

hello!i am a beginner and i do not know how to add 2 multidimentional arrays.i need help.please help me.i need only the ideas.thanks.
Just iterate through and add them:

1
2
3
4
5
6
7
8
9
10
11
int array1[5][5];
int array2[5][5];
int sumarray[5][5]

for(int i=0; i<5; i++)
{
     for(int n=0; n<5; n++)
     {
          sumarray[i][n] = array1[i][n] + array2[i][n];
      }
}

Topic archived. No new replies allowed.