374
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 module dstress.run.types_declaration_01;
|
0
|
6
|
|
7 int main(char[][] args){
|
|
8 int a; // a is an int
|
|
9 int* b; // b is a pointer to int
|
|
10 int** c; // c is a pointer to a pointer to int
|
|
11 int[] d; // d is an array of ints
|
|
12 int*[] e; // e is an array of pointers to ints
|
|
13 int[]* f; // f is a pointer to an array of ints
|
|
14 int[3] g; // g is an array of 3 ints
|
|
15 int[3][5] h; // h is an array of 5 arrays of 3 ints
|
|
16 int[3]*[5] i; // i is an array of 5 pointers to arrays of 3 ints
|
|
17 int (*j)(char); // j is a pointer to a function taking a char argument and returning an int
|
|
18 int (*[] k)(char); // k is an array of pointers to functions taking a char argument and returning an int
|
|
19 int l[3]; // l is an array of 3 ints
|
|
20 int m[3][5]; // m is an array of 3 arrays of 5 ints
|
|
21 int (*n[5])[3]; // n is an array of 5 pointers to arrays of 3 ints
|
|
22 int o,p; // o and p are ints
|
|
23 int* q,r; // x and y are pointers to ints
|
|
24 int[] s,t; // x and y are arrays of ints
|
|
25 return 0;
|
|
26 }
|