{ char c; int n=100; float f=10; double x; x=f*=n/=(c=50); printf("%d %f\n",n,x); }

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/22 18:51:35
{charc;intn=100;floatf=10;doublex;x=f*=n/=(c=50);printf("%d%f\n",n,x);}{charc;intn=100;floatf=10;dou

{ char c; int n=100; float f=10; double x; x=f*=n/=(c=50); printf("%d %f\n",n,x); }
{ char c; int n=100; float f=10; double x; x=f*=n/=(c=50); printf("%d %f\n",n,x); }

{ char c; int n=100; float f=10; double x; x=f*=n/=(c=50); printf("%d %f\n",n,x); }
{ char c; int n=100; float f=10; double x;
x=f*=n/=(c=50);
printf("%d %f\n",n,x); }
x=f*=n/=(c=50);
这个是从右往左运行的
先C=50
然后n=n/c这里n=2
然后f=f*n f=20.0
最后x=f
x=20.0
所以输出2 20.000000