【单选题】【消耗次数: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}
随机题目
【判断题】 纸质会计档案移交时应当保持原卷的封装。(  )
① 
② 
【判断题】 建立电子会计档案备份制度,能够有效防范自然灾害、意外事故和人为破坏的影响。(  )
① 
② 
【判断题】 电子会计档案移交时应当将电子会计档案及其元数据一并移交,且文件格式应当符合国家档案管理的有关规定。(  )
① 
② 
【判断题】 单位档案管理机构接收电子会计档案时,应当对电子会计档案的准确性、完整性、可用性、安全性进行检测,符合要求的才能接收。(  )
① 
② 
【单选题】 5月25日行政管理人员将标明日期为4月25日的发票拿来报销,经审核后会计人员依据该发票编制记账凭证时,记账凭证的日期应为(  )。
①  5月1日
②  4月25日
③  5月25日
④  4月30日
【单选题】 下列选项中,(  )作为记录经济业务事项的载体。
①  封面
②  扉页
③  账页
④  账簿名称
【单选题】 对账就是核对账目,其主要内容包括(  )。
①  账实核对、账表核对、账账核对
②  账账核对、账证核对、账表核对
③  账账核对、账证核对、表表核对
④  账证核对、账账核对、账实核对
【单选题】 以下关于现金支票的填写,说法正确的是(  )。
①  填写支票日期必须要大写
②  填写支票日期大小写均可
③  大写金额之后不需要加“整”字
④  填写支票时,如发现填写过程中有错误可以直接撕毁,重新填写一张新的现金支票
【单选题】 库存现金的清查是通过(  )进行的。
①  实地盘点法
②  账账核对法
③  技术分析法
④  征询法
【单选题】 根据《支付结算办法》的规定,银行汇票的提示付款期限是(  )。
①  自出票日起1个月
②  自出票日起2个月
③  自出票日起3个月
④  自出票日起4个月