场景1:
int count = 6;
int * pointer = &count ;
printf("%d",* pointer++);
场景2:
int count = 6;
int * pointer = &count ;
printf("%d",* (pointer++));
场景3:
int count = 6;
int * pointer = &count ;
printf("%d",* (pointer+1));
这三种场景下 * pointer++,* (pointer++),*(pointer+1)有啥区别?
int main(){
int count=6;
printf("count address: %d\n",&count);
int * pointer = &count ;
printf("%d\n",* pointer);
printf("%d %d %d",* pointer++,* (pointer++),* (pointer+1));
}
output:
count address: 2424388
6
2424396 6 2424388
--------------------------------
自己试着把代码敲出来就明白了