Some examples ("%04p" prints a pointer with Microsoft compilers). The 3d matrix "c", could be static or global.

Code:

#include <stdio.h>
int main(int argc, char **argv)
{
int (*a)[5][5]; /* ptr to a 2d matrix, [5][5] */
int *b[5][5]; /* a 2d matrix of pointers to integers */
int c[3][5][5]; /* a 3d matrix of integers */
a = c; /* point a to the 2d matrix at c[0][][] */
printf("%04p, %04p\n", a, c[0]);
a = &c[1]; /* point a to the 2d matrix at c[1][][] */
printf("%04p, %04p\n", a, c[1]);
a++; /* point a to the 2d matrix at c[2][][] */
printf("%04p, %04p\n", a, c[1]);
b[2][4] = &c[1][2][3]; /* set a pointer to integer */
printf("%04p, %04p\n", b[2][4], &c[1][2][3]);
return(0);
}