单项选择题

三元条件运算符ex1ex2:ex3,相当于下面的( )语句。

A.if(ex2)
ex1;
else
ex3;
B.if(ex3)
ex2;
else
ex1;
C.if(ex1)
ex3;
else
ex2;
D.if(ex1)
ex2;
else
ex3;