source:
CIVL/examples/languageFeatures/arrayPointer.cvl@
d8bb437
| Last change on this file since d8bb437 was 793cfc2, checked in by , 13 years ago | |
|---|---|
|
|
| File size: 123 bytes | |
| Rev | Line | |
|---|---|---|
| [65d5bdfd] | 1 | #include<civlc.h> |
| 2 | ||
| 3 | void foo(int* array) { | |
| 4 | array[0] = 2; | |
| 5 | } | |
| 6 | ||
| 7 | void main() { | |
| 8 | int a[1]; | |
| 9 | ||
| 10 | foo(a); | |
| 11 | $assert a[0] == 2; | |
| 12 | } |
Note:
See TracBrowser
for help on using the repository browser.
