对于整型变量a,赋值语句a=(a%3==0?1:0);与()语句不等价。
A. if(a%3)a=0;elsea=1;
B. if(a%3==0)a=1;elsea=0;
C. if(a%3)a=1;elsea=0;
D. if(a%3!=0)a=0;elsea=1;
查看答案
以下程序段的输出结果是()。inta=3,b=5,c=7;if(a>b)a=b;c=a;if(c!=a)c=b;printf("%d,%d,%d\n",a,b,c);
A. 3,5,3
B. 3,5,5
C. 3,5,7
D. 3,3,3
There is many a slip ___________ ! who knows what may happen.
A. Pygmalion effect
B. change like Proteus
C. between cup and lip
D. swan song
______________was a treasure, and the person who owned it could get everything that he wanted, and it is believed to be a symbol of limitless wealth and abundance.
A. the Midas touch
B. pipe of Pan
C. the olive branch
D. Amalthea’s Horn
As a sculptor, Pygmalion, King of Cyprus, made an ivory image of a woman named Galatea. Offering rich sacrifice and sending up a passionate prayer, he begged the goddess Artemis to give him a wife as graceful as Galatea.
A. 对
B. 错