adding links to solutions
This commit is contained in:
@@ -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:
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
Reference in New Issue
Block a user