以下程序的输出结果是______。 main() { char st[20]="hello\0\t\\"; printf("%d%d\n",strlen(st),sizeof(st)); }
A.99
B.520
C.1320
D.2020
第1题:
以下程序的输出结果是______。 main() { chsr st[20]="bello\0\t\\"; print("%d%f\n",strlen(st),sizeof(st)); }
A.99
B.520
C.1320
D.2020
第2题:
有以下的程序 #include<stdio.h> void fun(char *fname,char *st) { FILE *myf; int i; myf=fopen(fname,"w"); for(i=0;i<strlen(st);i++)fputc(st[i],myf); fclose(myf); } main() { fun("test.t","new world");fun("test.t","hello,");} 程序执行后,文件test.t中的内容是( )
A.hello,
B.new worldhello,
C.new world
D.hello,rld
第3题:
以下程序的输出结果是( )。
main
{ char st[20]="hello\0\t\\\";
printf("%d%d\n",strlen(st).sizeof(st));
}
A.9 9
B.5 20
C.13 20
D.20 20
第4题:
以下程序的输出结果是_______。 main() { char st[20]="hello\0\t\\"; printf(%d%d\n",strlen(st),sizeof(st)); }
A.99
B.520
C.1320
D.2020
第5题:
有以下程序 main() { char st[20]="hello\0\t'\\"; printf("%d%d\n",strlen(st),sizeof(st)); } 程序运行后的输出结果是( )
A.9 9
B.5 20
C.13 20
D.20 20