初级班:
int a[10]={1,2,3,4,5,6,7,8,9,10};
1.(a+1)[2] = 4
2.(a-1)[1] = 1
3.(*a)[a] = 2
4.(&a)[0][1] = 2
5.(&a)[1]-a = 10
//做错
中级班:
6.((int(*)[4])a)[1][2] = 7
7.(*((int(*)[4])a+1))[1] = 6
8.((int(*)[4])a+1)[1][1] = 10
//做错
9.(*(int(*)[4])a)[2] = 3
10.(*a)[(int(*)[4])a][((int(*)[4])a)[0][2]] = 8
高级版:
11.void func1(int*);
-> func1(a);
12.void func2(int(&)[4]);
-> func2((int(&)[4])a);
13.void func3(int*&); -> func3((int*&)a); //做错
14.void func4(int(&)[3][3]);
-> func4((int(&)[3][3])a);
PS:郁闷,看来还要看下....