using T1 = int*[1];
using T2 = int(*)[1];
T1 t1;
T2 t2;
t1[0] = 0; // ok
t2[0] = 0; // error : array type 'int [1]' is not assignable
t2 = t1; // error : array type 'int [1]' is not assignable
t2 = &t1; // error : array type 'int [1]' is not assignable
t2 = 0; // ok
为什么t2[0](/ t1) 不可赋值?
int*[1]和 和有什么区别int(*)[1]?
更新:
int n[1];
t2 = &n; // ok