vault backup: 2024-11-19 14:15:06
This commit is contained in:
parent
c4e36ab804
commit
5484db6823
@ -6,3 +6,9 @@ struct rectangle *p;
|
|||||||
```
|
```
|
||||||
> Assume that we want `p` to point to a rectangle structure whose upper left corner is at $(10, 25)$, and whose lower right corner is at $(20, 15)$. Write a series of statements that allocate such a structure and initialize it as indicated.
|
> Assume that we want `p` to point to a rectangle structure whose upper left corner is at $(10, 25)$, and whose lower right corner is at $(20, 15)$. Write a series of statements that allocate such a structure and initialize it as indicated.
|
||||||
|
|
||||||
|
```c
|
||||||
|
struct rectangle rect = { { 10, 25 }, { 20, 15 } };
|
||||||
|
p = ▭
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user