未知题型
style='font-size: 10.5pt'>设有定义style=';Times New Roman;'>int a=1,b=2,c=3;style=';;;'>以下语句中执行效果与其它三个不同的是
style='font-size: 10.5pt'>style=';Times New Roman;'>Astyle=';;;'>style=';Times New Roman;'>if(a>b) c=a,a=b,b=c;
style='font-size: 10.5pt'>style=';Times New Roman;'>Bstyle=';;;'>style=';Times New Roman;'>if(a>b) {c=a,a=b,b=c;}
style='font-size: 10.5pt'>style=';Times New Roman;'>Cstyle=';;;'>style=';Times New Roman;'>if(a>b) c=a;a=b;b=c;
style='font-size: 10.5pt'>style=';Times New Roman;'>Dstyle=';;;'>style=';Times New Roman;'>if(a>b) {c=a;a=b;b=c;}style='font-size: 13.5pt'>
A.5pt'>设有定义
B.5pt'>
C.5pt'>
D.5pt'>
E.5pt'>
F.5pt'>
【参考答案】
C。所有选择结构与循环结构语句默认只有一条语句,若多条语句必需用花括......
(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)
点击查看答案
相关考题

-
关注
- 顶部

微信扫一扫,加关注免费搜题