试题详情
单项选择题对于整型变量x,下属if语句()与赋值语句:x=x%2==0?1:0;不等价。

A、if(x%2!=0)x=0;elsex=;

B、if(x%2)x=1;elsex=0

C、if(x%2==0)x=1;elsex=0

D、if(x%2==1)x=0;elsex=1

  • B
  • 关注下方微信公众号,在线模考后查看

热门试题