【单选题】【消耗次数: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}
随机题目
【多选题】 价值和交换价值的关系是
①  交换价值是价值的基础
②  交换价值是价值的表现形式
③  价值是交换价值的表现形式
④  价值是交换价值的内容
【单选题】 经济全球化的实质决定了它的发展必然是( )。
①  有利于所有国家
②  有利于发达资本主义国家
③  有利于发展中国家
④  有利于社会主义国家
【单选题】 劳动生产率提高了,同一社会必要劳动时间里创造的价值
①  增加
②  减少
③  不变
④  增减不能确定
【判断题】 一切历史都是思想史。
①  正确
②  错误
【判断题】 历史是人们自己创造的,人的实践活动具有选择性,社会规律的存在和发生作用离不开人们的有意识的实践活动,所以,社会规律具有主观性。
①  正确
②  错误
【判断题】 实践是认识的唯一来源,意味着学习书本知识是无用的。
①  正确
②  错误
【判断题】 人们的历史选择性,归根结底是人民群众的选择性 。
①  正确
②  错误
【多选题】 国家是(   )。
①  阶级矛盾不可调和的产物和表现
②  统治阶级进行阶级压迫的暴力工具
③  统治阶级的国家
④  全体国民的国家
【多选题】 下列各项正确说明人的本质的有
①  人的本质不是先天的,而是后天社会实践中形成的
②  人的本质不是不变的,而是变化的
③  人的本质不是抽象的,而是具体的
④  人的本质是人的自然属性和社会属性的统一
【单选题】 社会发展的决定力量是( )。
①  人口因素
②  地理环境
③  国家政权
④  生产方式