b***y 发帖数: 2799 | 1 ☆─────────────────────────────────────☆
yunhai (飞纵千里山) 于 (Thu Aug 25 13:42:40 2005) 提到:
int (*p)[2]
int a[2]
p: a pointer which point to an int array which has size of 2
// Is this crrect?
usage:
int (*p)[2];
int a[2] = {3,4};
p = a; // error
p = &a; // right
who can explain them?
☆─────────────────────────────────────☆
thrust (Thrust Jaeina) 于 (Thu Aug 25 13:46:15 2005) 提到:
anything special? to compare with simple pointers, look at this
int *p, a; /* p is pointer to int */
p=&a; /* c |
|