I have code like this:
void print_matrix(int **a, int n) { int i, j; for(i = 0; i < n; i++) { for(j = 0; j < n; j++) printf(\"%
If you want n to vary (and be square), it is best to allocate and use a single dimension array and multiply when you want a different row.
int matrix[3*3];
How to use it?
matrix[row*3+col] = 5;
How to pass it.
f(int *a,int n)