三元条件运算符ex1?ex2:ex3,相当于下面哪个语句?
A.if(ex1)ex3;elseex2;
B.if(ex1)ex2;elseex3;
C.if(ex2)ex1;elseex3;
D.if(ex3)ex2;elseex1;
正确答案:A
猜你喜欢