From b801827aaa4fda4e234d94ea766d64597e39fecc Mon Sep 17 00:00:00 2001 From: Daniel Chen Date: Sat, 17 Aug 2024 19:30:07 +1000 Subject: [PATCH 1/2] fix: added a disclaimer note to the 2D malloc exercise regarding it not being a 'true' 2d array --- data/course-revision/1511-23T3/2d_malloc.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/data/course-revision/1511-23T3/2d_malloc.mdx b/data/course-revision/1511-23T3/2d_malloc.mdx index 9b87d7c..4587fa2 100644 --- a/data/course-revision/1511-23T3/2d_malloc.mdx +++ b/data/course-revision/1511-23T3/2d_malloc.mdx @@ -42,6 +42,7 @@ $ ./2d_malloc 10 10 - You may assume there is enough memory to allocate the array on the heap. - You may **not** store the arrays on the stack. - You do not need to worry about a horrific eldritch abomination destroying your computer midway through runtime. +- Note that this is not a "true" 2D array, but rather a 1D array pointing to 1D arrays. There are slight differences (e.g. it is not stored contiguously in memory), but you don't need to worry about this, it can be "used as" a 2D array! ## CSE Autotest From 8610ad37fddee98b9825b6afe09f20bf2dd16f5d Mon Sep 17 00:00:00 2001 From: Liam Smith Date: Sun, 18 Aug 2024 07:31:38 +1000 Subject: [PATCH 2/2] Changed 1511 2D-Malloc Note Order --- data/course-revision/1511-23T3/2d_malloc.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/course-revision/1511-23T3/2d_malloc.mdx b/data/course-revision/1511-23T3/2d_malloc.mdx index 4587fa2..11bfd6b 100644 --- a/data/course-revision/1511-23T3/2d_malloc.mdx +++ b/data/course-revision/1511-23T3/2d_malloc.mdx @@ -41,8 +41,8 @@ $ ./2d_malloc 10 10 - You may assume there is enough memory to allocate the array on the heap. - You may **not** store the arrays on the stack. -- You do not need to worry about a horrific eldritch abomination destroying your computer midway through runtime. - Note that this is not a "true" 2D array, but rather a 1D array pointing to 1D arrays. There are slight differences (e.g. it is not stored contiguously in memory), but you don't need to worry about this, it can be "used as" a 2D array! +- You do not need to worry about a horrific eldritch abomination destroying your computer midway through runtime. ## CSE Autotest