【单选题】【消耗次数: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}
随机题目
【单选题】 色彩三要素是指( )。
①  黑、白、灰
②  红、黄、蓝
③  明度、纯度、色相
④  间色、复色、补色
【单选题】 室内环境污染物甲醛的浓度限值是(?).
①  <0.05
②  ≤0.08
③  ≤01
④  ≤015
【单选题】 关于天然大理石和花岗岩材质,下列哪项是错误的?(?)?.
①  大理石是碱性石材,花岗岩是酸性石材。
②  大理石是酸性石材,花岗岩是碱性石材。
③  在大气污染严重的地区,建筑物外墙不宜用大理石。
④  花岗岩在高温下会发生体积不规则的膨胀,使整块石材开裂,因而花岗岩不耐热。
【单选题】 如将双手同时插入同温度的红色水和蓝色水中,结果测试者感知的温度有差别,红色水温度高而蓝色水温度低,这种情况属于色彩的(?)?。
①  具象联想
②  抽象联想
③  共感联想
④  幻想
【单选题】 构成设计中最基本的要素( )
①  黑、白、灰
②  点、线、面
③  平面、立体、构图
④  点、线、面、对比
【单选题】 木踢脚板是墙、地面石面做法的收口处理,-般踢脚板的高为(?)。
①  50~?100mm
②  100~200mm
③  200~300mm
④  400~500mm
【单选题】 现代风格的室内设计起源于1919年成立的包豪斯(Bauhalls)学派,其创始人是(?)。
①  W.格罗佩斯(W?.?Gropius)
②  R.迈耶(R.?Meier)
③  P.约翰逊(P?.?Johnson)
④  R●文丘里(R?.?Venturi)
【单选题】 在现代设计活动中,(?)?是设计师进行立体空间设计表现的最单纯、最常用的绘画语言。
①  淡彩
②  设计素描
③  全因素素描
④  水彩
【单选题】 正六面体处在视点的左上、左下、右上或右下方时,一点透视的正六面体可见到(?)?。
①  一个面
②  二个面
③  三个面
④  四个面
【单选题】 下列对环境艺术设计风格描述正确的是(?)。
①  现代风格不拘泥于传统的逻辑思维,探索新造型手法,讲究人情味。
②  后现代风格重视功能和空间组织,发展了以功能布局为依据的不对称的构图方法。
③  自然主义风格倡导“回归自然”,多采用木料、织物、石材等天然材料。
④  混合型风格强调设计与工业生产的联系。