#include
int main(void)
{
int a[] = {1, 5, 6};
int *b = a;
printf(" 1, 5, 6 \n *b++ = %d, *(b++) = %d\n", *b++, *(b++));
return 0;
}
[root@localhost test]# ./a.out
1, 5, 6
*b++ = 5, *(b++) = 1
考堆栈:方向是先右边后左边, 先*(b++)入栈,之后是*b++
*(b++)先运行*b,打印 1 出来之后再运行b++; *b++,打印出来5,再b++
阅读(1154) | 评论(0) | 转发(0) |