JHQ的一道指针题。# Programming - 葵花宝典
h*o
1 楼
Question: int (*a) [10];
a++;
What is the value of a after this?
A : a will be incremented by 20, assuming the size of int is 2.
我的疑问:why incremented by 20?
*a[10] 和(*a)[10] 有何区别?
我觉得int (*a) [10] 就是 int a [10]
a++;
What is the value of a after this?
A : a will be incremented by 20, assuming the size of int is 2.
我的疑问:why incremented by 20?
*a[10] 和(*a)[10] 有何区别?
我觉得int (*a) [10] 就是 int a [10]