I have a function like this:
MyFunction(double matrix[4][4])
{/*do stuff*/}
I am calling this from an outer function (the otuer function is a member function of a class, in case that matters):
OuterFunction()
{
double[4][4] x;
initialize(x); //this function puts the data I want in the matrix
MyFunction(x);
}
I am trying to debug this progaram using the Visual Studio debugger. The problem is that when I am looking at the locals for the OuterFunction, I can see all the elements of the array just fine, but when I am looking at the locals for MyFunction, I can only see the first row of the array, and it says it's a matrix[4]* rather than a matrix[4][4]. This even happens when I am only passing a one dimensional array - I pass in a matrix[4], then the debugger identifies it as a matrix* and only lets me see the first element of the array. Is it possible to fix this so I can see all of the array in the debugger?