首页 › 答案 › 题库 › 博览群书

设x为int型变量,则执行语句段x=10;x+=x-=x-x;后,x的值为()。

设x为int型变量,则执行语句段x=10;x+=x-=x-x;后,x的值为()。
A、30
B、20
C、40
D、10
正确答案:B
标签:变量 语句