單項選擇題執(zhí)行下列C++語句:doublex=0;if(x)cout<<1/x;elsecout<
A.什么都沒顯示
B.顯示錯誤信息
C.0
D.∞
您可能感興趣的試卷
你可能感興趣的試題
1.單項選擇題已定義數(shù)組a和指針變量p:int a[]={2,4,6},*p =&a[2];計算機執(zhí)行下列語句:cout<<*p--;cout<<*p;執(zhí)行后顯示器將顯示()。
A.64
B.46
C.42
D.24
2.單項選擇題C++數(shù)組定義語句:int a[3];數(shù)組a中不包括下列哪個元素?()
A.a[2]
B.a[1]
C.a[3]
D.a[0]