int a=1,b=2,c=3; after execution of the statement a += b *= c; the value of a is
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/26 12:05:32
inta=1,b=2,c=3;afterexecutionofthestatementa+=b*=c;thevalueofaisinta=1,b=2,c=3;afterexecutionofthest
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