From fab9c01b7870244a46f86b79d925e5ada1aea243 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 28 Feb 2017 15:32:36 +0100 Subject: [PATCH] TP_8 exo2: be more explicative about a false malloc invocation. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- TP_8/exo1/exo1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) { -- 2.34.1