source:
CIVL/mods/dev.civl.abc/examples/side-effects/dereference.c
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 94 bytes | |
| Rev | Line | |
|---|---|---|
| [aad342c] | 1 | |
| 2 | int* test(){ | |
| 3 | int a; | |
| 4 | int *p=&a; | |
| 5 | ||
| 6 | return p; | |
| 7 | } | |
| 8 | ||
| 9 | int main(){ | |
| 10 | int* ptr=test(); | |
| 11 | ||
| 12 | *ptr; | |
| 13 | } |
Note:
See TracBrowser
for help on using the repository browser.
