指针

指针的数组 和数组的指针

指针的数组,array of points

int* a[4];
int c[4] = {0x80000000,0xFFFFFFFF,0x00000000,0x7FFFFFFF};
//将c中元素赋值给a
for(unsigned int i = 0;i<4;i++){
    a[i] = &(c[i]);
}

数组的指针   a pointer to an array

int (*b[4];
b = &c;

 

posted @ 2020-03-01 14:39  天凉好个秋秋  阅读(75)  评论(0编辑  收藏  举报