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