main() { int a,x,y; a=5; a+=3; printf("a=%d \n",a); x=2; y=3; x*=y+8; printf("x=%d \n",x); x=8; x%=3;printf("x=%d \n",x);}运行结果如下:a=8x=22x=2在计算机中a+=3,x*=y+8,x%=3,是怎样运算的,结果是如何计算出来的
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 06:45:01
main(){inta,x,y;a=5;a+=3;printf("a=%d\n",a);x=2;y=3;x*=y+8;printf("x=%d\n",x);x=8;x%=3;printf("x=%d\
main() { int a,x,y; a=5; a+=3; printf("a=%d \n",a); x=2; y=3; x*=y+8; printf("x=%d \n",x); x=8; x%=3;printf("x=%d \n",x);}运行结果如下:a=8x=22x=2在计算机中a+=3,x*=y+8,x%=3,是怎样运算的,结果是如何计算出来的
main() { int a,x,y; a=5; a+=3; printf("a=%d \n",a); x=2; y=3; x*=y+8; printf("x=%d \n",x); x=8; x%=
3;printf("x=%d \n",x);
}
运行结果如下:
a=8
x=22
x=2
在计算机中a+=3,x*=y+8,x%=3,是怎样运算的,结果是如何计算出来的
main() { int a,x,y; a=5; a+=3; printf("a=%d \n",a); x=2; y=3; x*=y+8; printf("x=%d \n",x); x=8; x%=3;printf("x=%d \n",x);}运行结果如下:a=8x=22x=2在计算机中a+=3,x*=y+8,x%=3,是怎样运算的,结果是如何计算出来的
a+=3就是
a=a+3
=5+3
=8
x*=y+8就是
x=x*(y+8)
=2*(3+8)
=22
x%=3就是
x=x%3
=8%3
=2