salut
je declare un tableau en allocation dynamique dans le main de la maniere suivante:
c'est un tableau a 2 dimensions.
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 double **a; a = calloc ( i , sizeof(double*) ); if( a == NULL ) { fprintf(stderr,"Allocation a impossible"); exit(EXIT_FAILURE); } for(int j=0 ;j<i; j++ ) { a[j] =calloc(i, sizeof(double)); if( a[j] == NULL ) { fprintf(stderr,"Allocation a impossible"); exit(EXIT_FAILURE); } }
a la compilation, l'erreur suivante apparait:
invalid conversion from void* to double**
a quoi peut etre due cette erreur?
Partager