【单选题】【消耗次数:1】
已知字母a的ASCII十进制代码为97,则执行下列语句后的输出结果为(). char a=a; a--; printf(%d,%c\n,a+2-0,a+3-0);
b,c
a--运算不合法,故有语法错
98,c
格式描述和输出项不匹配,输出无定值
参考答案:
复制
纠错
相关题目
【单选题】 已知字母a的ASCII十进制代码为97,则执行下列语句后的输出结果为(). chara=a;a--; printf(%d,%c\n,a+2-0,a+3-0);
①  b,c
②  a--运算不合法,故有语法错
③  98,c
④  格式描述和输出项不匹配,输出无定值
【单选题】 若有语句char c1=`d`,c2=`g`;printf(“%c,%d\n”,c2-`a`,c2-c1);则输出结果为:()(a的ASCII码值为97)
①  M、2
②  G、3
③  G、2
④  D、g
【单选题】 已知字母A的ASCII码为十进制数65,且c2为字符型,则执行语句c2=’A’+’6’-’2’;后,c2中的值为()
①  69
②  C
③  D
④  E
【单选题】 main(){char a[]=Money;printf(%c,a[0]);}执行上面的程序段后,输出结果是()。
①  M
②  Money
③  m
④  Mon
【单选题】 若ch为char型变量,k为int型变量(已知字符a的ASCII十进制代码为97), 则以下程序段的执行结果是(). ch=a; k=12; printf(%x,%o,,ch,ch); printf(k=%%%d\n,k);
①  因变量类型与格式描述符的类型不匹配,输出无定值
②  输出项与格式描述符个数不符,输出为零值或不定值
③  61,141,k=%12
④  61,141,k=%d
【单选题】 有如下程序: #includevoid main( ) { int a=2,b=-1,c=2; if (ab) if (b0) c=0; else c++; printf(%d\n } 该程序的输出结果是
①  0
②  1
③  2
④  3
【单选题】 下列程序执行后的输出结果是 #includevoid main( ) { int a=5,b=60,c; if (ab) {c=a*b;printf(%d*%d=%d\n,b,a,c);} else {c=b/a;printf(%d/%d=%d\n,b,a,c);} }
①  60/5=12
②  300
③  60*5=300
④  12
【单选题】 下列程序执行后的输出结果是________. #include stdio.h void main( ) { int a=5,b=60,c; if (ab) {c=a*b;printf(%d*%d=%d\n,b,a,c);} else {c=b/a;printf(%d/%d=%d\n,b,a,c);} }
①  60/5=12
②  300
③  60*5=300
④  12
【单选题】 下列程序执行后的输出结果是_______.#include stdio.h void main( ) { int a=5,b=60,c; if (ab) {c=a*b; printf(%d*%d=%d\n,b,a,c);} else {c=b/a; printf(%d/%d=%d\n,b,a,c);} }
①  60/5=12
②  300
③  60*5=300
④  12
【简答题】 有以下程序(说明:字符0的ASCII码值为48)#includestdio.hmain(){ char c1,c2;scanf(%d,c2=c1+9;printf(%c%c\n,c1,c2); }若程序运行时从键盘输入48回车,则输出结果为[填空1]。
随机题目
【单选题】 It may only be through repeated experiments _______ a baby will come to accept the idea _______ other people can have different views from what he or she has.
①  how;which
②  how;that
③  that;that
④  which;which
【单选题】 This technology has been ?around for a long time, but not until recent years _______ it in marketing.
①  businesses employed
②  did businesses employ
③  businesses had employed?
④  had businesses employed
【单选题】 And there,almost________in the big chair,sat her little brother,who never had to be told to keep quiet.
①  having lost
②  losing
③  to be lost
④  lost
【单选题】 Neither of them________the snake.
①  dares catches
②  dare to catch
③  dare catching
④  dare catch
【单选题】 Ourclassroomis ______ largerthantheirs.
①  more
②  quite
③  very
④  much
【单选题】 Look out ! That tree_______ fall down.
①  is going to
②  will be
③  shall
④  would
【单选题】 Itwasveryhotyesterday,butitis _______today.
①  evenhotter
②  morehotter
③  muchmorehot
④  muchhot
【单选题】 He________listen to pop music,but now he________dancing.
①  is used to;used to
②  used to;is used to
③  used to;is used for
④  is used for;used to
【单选题】 ________,the subject was always in my mind.
①  Walking or sleeping
②  Walking or slept
③  Having walked or slept
④  To walk and sleep
【单选题】 The greatest tragedy in life is not to lose too much,but care about too much,_________ is an important reason people are not happy.
①  who
②  that
③  what
④  which