【单选题】【消耗次数:1】
以下程序执行后输出结果是() #include stdio.h main( ) { char s[]=\n123\\; printf(%d,%d\n,strlen(s),sizeof(s)); }
赋初值的字符串有错
6,7
5,6
6,6
参考答案:
复制
纠错
相关题目
【单选题】 下列程序执行后的输出结果是________. #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
【单选题】 以下程序的输出结果是(  )。#include stdio.h void main( ){ int a,b;for(a=1,b=1;aa++){ if (b=10) break;if (b%5==1) { b+=5; continue; } }printf(%d\n }
①  101
②  6
③  4
④  3
【单选题】 以下程序的运行结果是(  )。 #include stdio.hvoid main(){int i=1,s=3;do{s+=i++;if (s%7==0)continue;else++i;} while (sprintf(%d\n
①  7
②  8
③  9
④  10
【简答题】 #include stdio.hint main(){char string[]=I love China! printf(%s\n,string); printf(%c\n,string[7]); return 0;}以上程序运行结果为[填空1]。
【简答题】 #include stdio.hint main(){char *string=I love China!printf(%s\n,string);return 0;}以上程序运行结果为[填空1]。
【简答题】 以下程序的运行结果是[填空1]。 #include stdio.hvoid main(){int i=1,s=8;do{s+=i++;if (s%7==0)continue;else++i;} while (sprintf(%d\n}
【简答题】 以下程序的运行结果是[填空1]。 #include stdio.hvoid main(){int i=1,s=3;do{s+=i++;if (s%7==0)continue;else++i;} while (sprintf(%d\n}
【简答题】 以下程序的运行结果是[填空1]。 #include stdio.hvoid main(){int i=1,s=1;do{s+=i++;if (s%7==0)continue;else++i;} while (sprintf(%d\n}
【简答题】 以下程序的运行结果是[填空1]。 #include stdio.hvoid main(){int i=1,s=0;do{s+=i++;if (s%7==0)continue;else++i;} while (sprintf(%d\n}
随机题目
【判断题】 高血压可导致心脏后负荷过重。
①  正确
②  错误
【单选题】 不属于臂丛的神经为( )。
①  尺神经
②  桡神经
③  膈神经
④  肌皮神经
【单选题】 促进胃排空的因素是( )
①  十二指肠内的酸刺激
②  十二指肠内的脂肪浓度升高
③  十二指肠内的渗透压升高
④  胃内的氨基酸和肽浓度升高
【单选题】 膀胱( )。
①  属于腹膜内位器官
②  空虚时膀胱全部位于小骨盆腔内
③  女性膀胱后方邻子宫颈和阴道上段
④  男性膀胱底的后方有前列腺
【单选题】 形成动脉血压的前提因素是( )
①  心血管系统中有充足的血液充盈
②  大动脉弹性贮器作用
③  心脏射血
④  血管阻力
【判断题】 切除肾上腺后,动物死亡的原因是缺乏糖皮质激素。
①  正确
②  错误
【判断题】 胃食道返流患者饮食宜少量多次,选择质地柔软而热量丰富的食物。
①  正确
②  错误
【判断题】 血液中糖皮质激素浓度升高,可抑制垂体产生ACTH.
①  正确
②  错误
【判断题】 生长激素的促生长作用只能通过胰岛素实现。
①  正确
②  错误
【单选题】 下丘脑室旁核主要分泌下列哪种激素( )
①  催产素
②  生长激素
③  促卵泡激素
④  促肾上腺皮质激素