From: Jérôme Benoit Date: Tue, 28 Feb 2017 14:32:36 +0000 (+0100) Subject: TP_8 exo2: be more explicative about a false malloc invocation. X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=fab9c01b7870244a46f86b79d925e5ada1aea243;p=TD_C.git TP_8 exo2: be more explicative about a false malloc invocation. Signed-off-by: Jérôme Benoit --- 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++) {