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

设int x=1,y=2;,下列语句错误的是
A、x++=y;
B、for(x=0;x++);
C、while(xD、if(x【正确答案】:A