以下程序运行后的输出结果是【10】。
include<stdio.h>
main()
{ char a;
for(a=0;a<15;a+=5)
{putchar(a+'A');}
printf("\n");
}
第1题:
有以下程序: #include <string.h> main() {char *p="abcde\Ofghjik\0"; printf("%d\n",strlen(p)); } 程序运行后的输出结果是( )。
A.12
B.15
C.6
D.5
第2题:
有以下程序: #include<string.h> main( ) { char *p="abcde\0ghjik\0"; printf("%d\n",strlen(p) ); } 程序运行后的输出结果是
A.12
B.15
C.6
D.5
第3题:
试题10
以下程序运行后的输出结果是______.
#include <stdio.h>
main()
{char a;
for(a=0; a<15; a+=5)
{putchar(a+’A’);}
printf(“\n”);
}
第4题:
有以下程序 #include.<string.h> main() { char *p="abcde\ofghjik\0"; printf("%d\n",strlen(p)); } 程序运行后的输出结果是
A.12
B.15
C.6
D.5
第5题:
有以下程序 main() { int a=1,b; for(b=1;b<=10;b++) { if(a>=8)break; if(a%2==1){a+=5;continue;} a-=3; } printf("%d\n",b); } 程序运行后的输出结果是______。
A.3
B.4
C.5
D.6