vault backup: 2024-11-19 21:26:03
This commit is contained in:
parent
35c54292c8
commit
a5ad33523f
@ -43,5 +43,13 @@ The above loop won't function because it deallocates the entry, then attempts to
|
|||||||
A functional example might look like this:
|
A functional example might look like this:
|
||||||
```c
|
```c
|
||||||
struct entry* p = first;
|
struct entry* p = first;
|
||||||
|
while (p != NULL) {
|
||||||
|
void *current = p;
|
||||||
|
p = p->next;
|
||||||
|
free(p);
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
```
|
---
|
||||||
|
|
||||||
|
> **9.** True or false: If `x` is a structure and `a` is a member of that structure, then `(&x)->a` is the same as `x.a`. Justify your answer
|
Loading…
Reference in New Issue
Block a user