*p++ 先取内容再地址加1如果printf("%d",*p++)输出的依然是*p的地址存放的内容 *--p 地址减一下再取内容
--*p 先取值再减1
*++p 地址加1再取内容
注意: 如果连续输出,上一步结果对下一步有影响
#include "stdio.h" void main() { int a[7]={1,7,10,8,5,11,17}; int *p=a+3; printf("%d ",*p++); printf("%d ",*++p); printf("%d ",*--p); printf("%d ",--*p); printf("%d ",++*p); printf("%d ",*(--p)); }