#defineMIN(A,B)((A)<=(B))?(A):(B)
intmain(void)
{ inta[10]={0,1,2,3,4,5,6,7,8,9};
int*p=a;
printf("%d\n",MIN(*(p++),9));//a=0送给指针P,P++为1,1的指向地址的数为1
printf("%d\n",MIN(*(p++),9));//a=1送给指针P,P++为2,2的指向地址也是为2啊,为何变3了?
printf("%d\n",MIN(*(p++),9));
printf("%d\n",MIN(*(p++),9));
printf("%d\n",MIN(*(p++),9));
return0;
}
函数结果
13579 |