指针运算中的优先级
作者:互联网
/*指针运算中的优先级*/
#include<stdio.h>
int a[2] = { 100, 200};
int b[2] = { 300, 400};
int main(void)
{
int *p1, *p2, *p3;
p1 = p2 =a;
p3 = b;
printf(" *p1 = %d, *p2 = %d, *p3 = %d\n", *p1, *p2, *p3);
printf(" *p1++ = %d, *++p2 = %d, (*p3)++ = %d\n", *p1++, *++p2, (*p3)++);
printf(" *p1 = %d, *p2 = %d, *p3 = %d", *p1, *p2, *p3);
return 0;
}
标签:p2,p3,p1,优先级,运算,++,int,printf,指针 来源: https://blog.csdn.net/weixin_58038211/article/details/122776010