From 6f28227d5b2f3770470892b4991c4dc6ebb064c1 Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Tue, 27 Feb 2024 21:02:25 +0000 Subject: Tue, Feb 27, 2024, 1:02 PM -08:00 --- wk4/lect/memory.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'wk4/lect') diff --git a/wk4/lect/memory.c b/wk4/lect/memory.c index c4e6de0..26cff19 100644 --- a/wk4/lect/memory.c +++ b/wk4/lect/memory.c @@ -7,7 +7,7 @@ int main(void) { int *x = malloc(3 *sizeof(int)); - x[1] = 72; - x[2] = 73; - x[3] = 33; + x[0] = 72; + x[1] = 73; + x[2] = 33; } -- cgit v1.2.3