指针

星号的位置不影响定义的含义:

/* The * operator binds to right and therefore these are all equivalent. */
int *i;
int * i;
int* i;

但是,在一次定义多个指针时,每个指针都需要自己的星号:

int *i, *j; /* i and j are both pointers */
int* i, j;  /* i is a pointer, but j is an int not a pointer variable */

指针数组也是可能的,其中在数组变量的名称之前给出星号:

int *foo[2]; /* foo is a array of pointers, can be accessed as *foo[0] and *foo[1] */