adding links to solutions

This commit is contained in:
Jidong Xiao
2023-09-18 23:55:35 -04:00
parent 15be49e536
commit 736f796c1e

View File

@@ -404,6 +404,8 @@ c->y[1] = 7;
b = NULL; b = NULL;
``` ```
See [solution](memory_exercise1_solution.png)
```cpp ```cpp
int a[5] = { 10, 11, 12, 13, 14 }; int a[5] = { 10, 11, 12, 13, 14 };
int *b = a + 2; int *b = a + 2;
@@ -414,6 +416,8 @@ c[1] = b[1];
c = &(a[3]); c = &(a[3]);
``` ```
See [solution](memory_exercise2_solution.png)
- Write code to produce this diagram: - Write code to produce this diagram:
![alt text](memory_exercise.png "memory exercise") ![alt text](memory_exercise.png "memory exercise")