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