int x=6; x += x -= x * x; printf("x = %d\n",x);

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 04:48:39
intx=6;x+=x-=x*x;printf("x=%d\n",x);intx=6;x+=x-=x*x;printf("x=%d\n",x);intx=6;x+=x-=x*x;printf("x=%

int x=6; x += x -= x * x; printf("x = %d\n",x);
int x=6; x += x -= x * x; printf("x = %d\n",x);

int x=6; x += x -= x * x; printf("x = %d\n",x);
int x=6;
x +=( x -= x * x);
等价于:
x=(x+=(6-(6*6)))=(x+=-30)=-60;