I use this code for loading matrix:

```
 FILE *inputMatrix=fopen("file","r");
 fscanf(inputMatrix,"%d",&num);
 for(i=0;i<num;++i){
    for(j=0;j<num+1;++j){
        fscanf(inputMatrix,"%f",&A[i][j]);
    }
 }
 fclose(inputMatrix);
 int numRow=num;
 int numColumn=num+1;

```

and then I want to print it in main by method printMatrix:

```
void printMatrix(int numColumn, int numRow ,int matrix[numRow][numColumn]){
   int i = 0, j = 0;
   printf("nc: %i, nr: %i\n",numColumn,numRow);
    for(i = 0 ; i < numRow ; i++)
    {
        for(j = 0 ; j < numColumn ; j++)
        {
            printf("%.2f  ", matrix[i][j]);
        }
        printf("\n");
    }
    printf("\n");
}

```

Here is the question. When I use in main: `printf("matrix[1][1] is %f",matrix[1][1])` => it is loaded successfully from file, but when I try to print it by my method, which prints as well, I get 0.00 for every piece in matrix. Why so? Am I missing some referrence?