source:
CIVL/mods/dev.civl.com/examples/uint/prePostIncrement.c@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 218 bytes | |
| Rev | Line | |
|---|---|---|
| [1396a98] | 1 | $input unsigned int a; |
| 2 | ||
| 3 | unsigned int f(unsigned int x); | |
| 4 | ||
| 5 | int main(){ | |
| 6 | unsigned int k=a, t; | |
| 7 | ||
| 8 | k++; // should be k=$unsigned_add(k, 1, bound); | |
| 9 | t=f(k++); | |
| 10 | t=f(++k); | |
| 11 | } | |
| 12 | ||
| 13 | unsigned int f(unsigned int x){ | |
| 14 | return x*2; | |
| 15 | } |
Note:
See TracBrowser
for help on using the repository browser.
