Bonjour,
je dois créer une fonction de multiplication de deux matrices.
j'ai fait alors :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
int mult(double **mat1, double **mat2, double **res){
   ...
   for(i=0; i<2; i++)
       for(j=0; j<2; j++)
           for(k=0; k<2; k++)
               res[i][j] = mat1[i][k] * mat2[k][j] + res[i][j];
}
 
void main(){
     double mat1[2][2] = {{1,2},
                                   {3,4}};
     double mat2[2][2] = {{9,8},
                                    {7,6}};
     double **res;
 
      mult(mat1, mat2, res);
}
à la compilation : j'obtiens le WARNING suivant dont je comprends pas le sens... :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
attention : passing argument 1 of 'mult' from incompatible pointer type
attention : passing argument 2 of 'mult' from incompatible pointer type
Quelqu'un pourrait m'expliquer à quoi signifie ces warning ?
merci d'avance