void print_matrix(int x[10][20][15]) {...}
Variable-sized multi-dimensional arrays are problematic in C.
Actually you can omit the first dimension - but this is rarely helpful.
Read K&R for an explanation of indexing of multi-dimensional arrays and pointers.