Obtaining a referece to current matrix

i want to be able to retrieve the values of the 4*4 matrix (it is of type float right?) that is currently in use (ie on the top of the stack)

so in order to do this i get a pointer to the data, but how do i obtain the reference to assign the pointer to?

Never mind, i worked it out
float fProjection[4][4];
glGetFloatv(GL_PROJECTION_MATRIX, &fProjection[0][0]);

float fModelView[4][4];
glGetFloatv(GL_MODELVIEW_MATRIX, &fModelview[0][0])