source:
CIVL/mods/dev.civl.abc/examples/side-effects/structInitSideEffect.c
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 141 bytes | |
| Line | |
|---|---|
| 1 | struct Node{ |
| 2 | int x; |
| 3 | int y; |
| 4 | int z; |
| 5 | }; |
| 6 | |
| 7 | int f(int a){ |
| 8 | return a; |
| 9 | } |
| 10 | |
| 11 | int main(){ |
| 12 | struct Node node = {f(0), f(1), f(2)}; |
| 13 | return 0; |
| 14 | } |
| 15 |
Note:
See TracBrowser
for help on using the repository browser.
