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