填空题

以下程序的输出结果是【 】。 #include main( ) {char a[]={′\1′,′\2′,′\3′,′\4′,′\O′}; printf("%d%d\n",sizeof(a),strlen(a)); }

【参考答案】

5 4
<上一题 目录 下一题>
热门 试题

填空题
以下程序通过函数sunFun求。这里f(x)=x2+1main( ){ printf( The sum=%d n ,SunFun(10)); }SunFun(int n){ int x,s=0;for(x=0;x<=n;x++= s+=F(【 】);return s;=F( int x){ return【 】};}
填空题
以下程序运行后的输出结果是【 】。#include<string.h>char* ss(char *s){ char *p,t;p=s+1;t=*s;while(*p){*(p-1)=*p;p++;}*(p-1);t;return s;}main(){char *p,str[10]= abcdefgh ;p=ss(str);printf( %s n ,p);}
相关试题
  • 以下程序运行后的输出结果是【 】。main ...
  • 以下程序的输出结果是【 】。#include m...
  • 设有定义:FILE*fw;,请将以下打开文件的...
  • 在进行模块测试时,要为每个被测试的模块另...
  • 以下程序的功能是计算:s=1+12+12...