source:
CIVL/mods/dev.civl.com/examples/languageFeatures/arrayDefProblem.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 186 bytes | |
| Rev | Line | |
|---|---|---|
| [e6b02c8] | 1 | #include <civlc.cvh> |
| [078adfd] | 2 | #include <stdio.h> |
| 3 | ||
| 4 | void print(int * p, int rowNum){ | |
| 5 | printf(" value is %d\n", p[1*rowNum+1]); | |
| 6 | } | |
| 7 | ||
| 8 | void main(){ | |
| 9 | int i[2][2] = {1,2,3,4}; | |
| 10 | ||
| 11 | print(&i[0][0], 2); | |
| 12 | ||
| 13 | } |
Note:
See TracBrowser
for help on using the repository browser.
