source:
CIVL/mods/dev.civl.com/examples/modelbuilder/arrayLiteral.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 121 bytes | |
| Line | |
|---|---|
| 1 | double f(double x[]) { |
| 2 | return x[0]; |
| 3 | } |
| 4 | |
| 5 | int main() { |
| 6 | int n = 3; |
| 7 | double y = f((double[n]){1.0,2.0,3.0}); |
| 8 | |
| 9 | y++; |
| 10 | } |
Note:
See TracBrowser
for help on using the repository browser.
