]>
Commit | Line | Data |
---|---|---|
f9e62f40 | 1 | #include <stdio.h> |
2 | #include <stdlib.h> | |
3 | ||
4 | int fn(int arr[/*7*/][10]) /* better without the 7 */ | |
5 | { | |
6 | return 0; | |
7 | } | |
8 | ||
9 | int fn2(int arr[10][]) /* bad */ | |
10 | { | |
11 | return 0; | |
12 | } | |
13 | ||
14 | int fn3(int arr[][]) /* bad */ | |
15 | { | |
16 | return 0; | |
17 | } | |
18 | ||
19 | int fn4(int arr[][10][7][4]) | |
20 | { | |
21 | return 0; | |
22 | } | |
23 | ||
24 | int fn5(int arr[][10][][4]) /* bad */ | |
25 | { | |
26 | return 0; | |
27 | } | |
28 | ||
29 | int main() | |
30 | { | |
31 | int array[10][]; /* incomplete type bad */ | |
32 | int array2[][10]; /* array size missing */ | |
33 | return fn(array); | |
34 | } |