三目运算符表达式“d=a>b(a>ca:c):(b>cb:c);”等价于下列①、②、③、④四组程序的()组解释 ①if(a>b)d=b; else if(a>c) d=c; else if(b>c) d=c; else d=b; ②if(a>b){ if(a>c)d=a; else d=c; } else { if(b>c) d=b; else d=c;} ③if(a>b) if(a>c) d=c; else d=a; else if(b>c) d=c; else d=b; ④if(a>b) d=a; else if(a>c) d=a; else if(b>c) d=b; else d=c;
A: ①
B: ②
C: ③
D: ④
A: ①
B: ②
C: ③
D: ④
举一反三
- 下面哪种结构不是分支结构( ) A: if B: if……else C: for D: if……else if……else
- __would like to go to the park with me? A: Whom else B: What else C: Who else D: Else who
- This pen is not mine, it must be ____. A: somebody else's B: somebody else' C: somebody's else D: somebody' else
- 下列语句搭配正确的是( ) A: if ,while B: while ,else C: if ,else D: if ,else if
- If that pen is not hers, ____________ can it be? A: who else B: whose else's C: who else's D: who's else