【单选题】【消耗次数: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}
随机题目
【单选题】 绘制多段线的命令是()
①  LINE
②  PLINE
③  XLINE
④  MLINE
【单选题】 在约束符号出现时,按()键击鼠标右键,该约束会被锁住。
①  TabB
②  Ctrl
③  shift
④  Alt
【单选题】 ProE中建立拔模特征时拔模角度的有效范围是()
①  -10度——10度
②  -15度——15度
③  -30度——30度
④  -45度——45度
【判断题】 某数据段的逻辑地址为0FAA0:600,则数据段的段地址为FAA0h,偏移地址为600h,物理地址为FB000h。
①  正确
②  错误
【单选题】 下列输出设备中,软拷贝设备是______。
①  绘图机
②  打印机
③  穿孔机
④  显示器
【判断题】 指令MOVBX,AL有错,应改为MOVBX?AX。
①  正确
②  错误
【判断题】 对于下面的符号定义,指出下列指令的错误。A1DB?A2DB10K1EQU1024①MOVK1,AXK1为常量,不能用MOV指令赋值②MOVA1,AXA1为字节,AX为字变量,不匹配③CMPA1,A2A1未定义,无法做比较指令④K1EQU,2048K1重新赋值前,必须用PURGE释放
①  正确
②  错误
【判断题】 满二叉树一定是完全二叉树,完全二叉树不一定是满二叉树。()
①  正确
②  错误
【单选题】 【拔模】特征将()间的拔模角度添加到单独的曲面或一系列曲面中。仅当曲面是由列表圆柱面或平面形成时才可拔模。曲面边的边界周围有圆角时不能拔模。
①  -20°和+20°
②  -30°和+30°
③  -40°和+40°
④  以上都正确
【单选题】 在机器数______中,零的表示形式是唯一的。
①  原码
②  补码
③  移码
④  反码