Skip to content

Commit

Permalink
Fixed ascii art.
Browse files Browse the repository at this point in the history
  • Loading branch information
janpgit committed Apr 7, 2024
1 parent e4a227c commit 80edc14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/pointers.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ int *p = &i; // assign an address of 'i'
- Good practice is to prefix pointers with the 'p' letter, e.g.:

```C
int val;
int val = 5;
int *pval = &val;
```

Expand All @@ -61,10 +61,10 @@ int *pval = &val;
object as already said). With the declarations above, it looks as follows:

```
p
pval
+---------------+
| addr2 |
+---------------+ i
+---------------+ val
^ +-------+
| | 5 |
addr1 +-------+
Expand Down

0 comments on commit 80edc14

Please sign in to comment.