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

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/03 17:26:10
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

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