source:
CIVL/mods/dev.civl.abc/examples/badArrayArg.c
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 193 bytes | |
| Rev | Line | |
|---|---|---|
| [aad342c] | 1 | /* Should give syntax error */ |
| 2 | #include<stdio.h> | |
| 3 | ||
| 4 | ||
| 5 | ||
| 6 | double a[3][4]; | |
| 7 | ||
| 8 | void f(double **p) { | |
| 9 | printf("%f\n", p[2][3]); | |
| 10 | fflush(stdout); | |
| 11 | } | |
| 12 | ||
| 13 | int main() { | |
| 14 | a[2][3] = 3.1415; | |
| 15 | f(a); | |
| 16 | return 0; | |
| 17 | } |
Note:
See TracBrowser
for help on using the repository browser.
