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