int a=1,b=2,c=3; after execution of the statement a += b *= c; the value of a is

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 09:55:12
int a=1,b=2,c=3; after execution of the statement a += b *= c; the value of a is
x)+QH5I5I5VHL+I-RHHM.-SOS(HU(.I,IMVжUHRвUHK%攦%*d$SP;Y X'?%)eALj$kT m* m̀XGq#@yvP_ڀ9z /|6ck_hxh74ziÞ'<_7e@eO7?=鄎g J}Ӟi:&@lZHv*X

int a=1,b=2,c=3; after execution of the statement a += b *= c; the value of a is
int a=1,b=2,c=3; after execution of the statement a += b *= c; the value of a is

int a=1,b=2,c=3; after execution of the statement a += b *= c; the value of a is
a += b *= c;
等价于
b = b * c; a = a + b;
b = b * c = 2 * 3 = 6; a = a + b = 1 + 6 = 7.
so, the value of a is 7.

7. 这是C语言题目。
赋值运算符是右结合性
a += b *= c可化成
a=a+b=a+b*c