int matrix[2][2]; //A 2 x 2 matrix
for(int x = 0; x < 2; ++x) //Fill the matrix
{
for(int y = 0; y < 2; ++y)
{
matrix[x][y] = 5; //Fill with number 5 in every space.
}
}
//Elements are added like this.
int sum = matrix[0][0] + matrix[0][1]; //Add these two elements of the matrix together.