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

假设a是int类型变量,并初始化为1,则下列()为合法的条件语句?

假设a是int类型变量,并初始化为1,则下列()为合法的条件语句?
A、if(a<;<;3){}
B、if(a=2){}
C、if(a){}
D、if(true){}
正确答案:D