#include void fonction (char Depart[],char Copie[][3]); int main() { char Depart[9]; char Copie[3][3]; printf("Chaine de depart: "); scanf("%s",Depart); fonction(Depart,Copie); printf("Copie:%s\n",Copie); return 0; } void fonction (char Depart[],char Copie[][3]) { int i,j=0; while (Depart[j] != '\0') { j++; for (i=0;i<=8;i++) { **(Copie+i)=Depart[j]; } } } v.c: In function ‘main’: v.c:15:16: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[3]’ [-Wformat=] 15 | printf("Copie:%s\n",Copie); | ~^ ~~~~~ | | | | | char (*)[3] | char * Chaine de depart: azerty Copie: *** stack smashing detected ***: terminated Abandon (core dumped)