(“□”代表空格)
(“□”代表空格)
1、執(zhí)行下面程序時,欲將25和2.5分別賦給a和b,正確的輸入方法是________.
int a;
float b;
scanf("a=%d:b=%f",&a,&b);
A、25□2.5
B、25,2.5
C、a=25:b=5.5
D、a=25□b=2.5
2、與語句while(!x)等價的語句是______.
A、x==0
B、x==1
C、x!=0
D、x!=0
3、下列可以正確表示字符型常數(shù)的是______.
A、
B、'\t'
C、
D、297
1、執(zhí)行下面程序時,欲將25和2.5分別賦給a和b,正確的輸入方法是________.
int a;
float b;
scanf("a=%d:b=%f",&a,&b);
A、25□2.5
B、25,2.5
C、a=25:b=5.5
D、a=25□b=2.5
2、與語句while(!x)等價的語句是______.
A、x==0
B、x==1
C、x!=0
D、x!=0
3、下列可以正確表示字符型常數(shù)的是______.
A、
B、'\t'
C、
D、297
其他人氣:579 ℃時間:2020-02-02 23:25:20
優(yōu)質(zhì)解答
1 C、a=25:b=5.5 //格式串中有a=:b=,必須原樣輸入;2 A、x==0 //!x成立時,表示x為假,即x==0,在C中,0表示假;3 B、'\t'//'\t'是C的轉(zhuǎn)義符,表示跳格符....對于第一題,題目要求把2.5賦給b,但C選項中卻把5.5賦給了b,這個又怎么解釋呢?題目有誤,答案C應(yīng)該改為:C、a=25:b=2.5 否則,這個題沒有正確答案。
我來回答
類似推薦
- 簡單選擇題,請解釋一下!
- Nobody can finish the work------him .
- 1.The pen i bought yesterday_____
- 1._____aloud to me while i do the ironing?
- _______,we'd like to go outing
- 函數(shù)f(x)=sinx-cosx^2的最小值是?
- 英語翻譯
- I took my grandpa to the hospital this morning,_____ I missed the first class.
- So crazy
- 方差是各個數(shù)據(jù)與平均數(shù)之差的平方的平均數(shù)
- 函數(shù)y=f(x)與它反函數(shù)y=f^-1(x)怎么讀?
- These are photos of my families.Look at them 改錯
猜你喜歡
- 1平面與平面重合,是否屬于平行一類?那重合的兩直線,也屬于平行一類的嗎?
- 2非洲每年因饑餓死亡的人數(shù)及現(xiàn)在饑餓人口數(shù)量拜托各位了 3Q
- 3decide to do sth.還=什么
- 4(7/8)o you think of london?B:5.____london is one of the liveliest cities
- 5啤酒可以托運嗎
- 6邊長為2√6的等邊三角形的中心到一邊的距離為?
- 7please give your hand to help me
- 8已知2的X次方等于3的Y次方等于6的Z次方不等等于1,證明X分之一加Y分之一等于Z分之一.
- 9幫我做做?
- 10機械分析天平TG628A的使用說明書
- 11in winter ,we wear warm coats to protect our bodies_.
- 12( )was most importance to her ,she told me,was her family it this what as