I'm defining a matrix, A, and I just want to print it out:
#include <stdio.h>
#define N 4
double A[N][N]= {
        {1, 2, 3, 4},
        {5, 6, 7, 8},
        {9, 10, 11, 12},
        {13, 14, 15, 16}
};
void print_matrix(double **A) {
    int i, j;
    for(i = 0; i < N; i++) {
        for(j = 0; j < N; j++) {
            printf("%f ", A[i][j]);
        }
        printf("\n");
    }
}
int main() {
    print_matrix(A);
}
But on compile I get the error: expected 'double **' but argument is of type 'double (*)[4]'
I tried in the main function to pass the matrix like print_matrix(&A); but then the error was expected 'double **' but argument is of type 'double (*)[4][4]'
 
     
    