source:
CIVL/examples/languageFeatures/arrayPointer.cvl@
f24290c
| Last change on this file since f24290c was 793cfc2, checked in by , 13 years ago | |
|---|---|
|
|
| File size: 123 bytes | |
| Line | |
|---|---|
| 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.
