From 736f796c1eebef8bf339d2d9e2dbe16f5165dd5f Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Mon, 18 Sep 2023 23:55:35 -0400 Subject: [PATCH] adding links to solutions --- lectures/06_memory/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lectures/06_memory/README.md b/lectures/06_memory/README.md index 633e8c9..ca69e03 100644 --- a/lectures/06_memory/README.md +++ b/lectures/06_memory/README.md @@ -404,6 +404,8 @@ c->y[1] = 7; b = NULL; ``` +See [solution](memory_exercise1_solution.png) + ```cpp int a[5] = { 10, 11, 12, 13, 14 }; int *b = a + 2; @@ -414,6 +416,8 @@ c[1] = b[1]; c = &(a[3]); ``` +See [solution](memory_exercise2_solution.png) + - Write code to produce this diagram: ![alt text](memory_exercise.png "memory exercise")