For practice, I want to define a Matrix addition of two 2-D Matrces by pulling the pointers of them. Here is the initiation
const double A[2][2]={{1,2},{3,4}};
double B[2][2]={{4,3},{2,1}};
const double* a=*A;
double* b=*B;
However, since the pointer merely points to the first element of the first array within each matrix, a=*(A+0), how can i go through every element of each Matrix? And I only wnat to use pointer as parameter here.
void D2Add(const double*, double*){
...for loop here...
}