X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=TP_8%2Fexo1%2Fexo1.c;fp=TP_8%2Fexo1%2Fexo1.c;h=b0e5df93e53151a5cd8ad194b842f159162cc486;hb=fab9c01b7870244a46f86b79d925e5ada1aea243;hp=beea2f689f02cc43e785b4eb3077f2bcd6de5f79;hpb=00d88568ddfaf33eca5b6bac058b4e5ada15cc41;p=TD_C.git diff --git a/TP_8/exo1/exo1.c b/TP_8/exo1/exo1.c index beea2f6..b0e5df9 100644 --- a/TP_8/exo1/exo1.c +++ b/TP_8/exo1/exo1.c @@ -11,7 +11,7 @@ int main() { int* arr; printf("Longeur?\n"); int size = promptValue(); - //arr = malloc(sizeof(arr[size])); + //arr = malloc(sizeof(arr[size])); prend la taille de l'élément à la position de l'index = size arr = malloc(sizeof(int)*size); for (int i = 0; i < size; i++) {