单选题
👁️ 浏览量:

试题题干

设int x=1,y=2;,下列语句错误的是()

A

x++=y;

B

for(x=0;x

C

while(x

D

if(x

参考答案

正确答案:

试题解析

x++是算术表达式,y不能给它赋值