下列程序段的输出结果是()。
A.7
B.8
C.9
D.10
第1题:
下列程序的输出结果是______。 #include<stdio.h> main () { int a,b; for(a=1,b=1;a<=100;a++) { if(b>=20)break; if(b%3==1) { b+=3; continue; } b-=5; } printf("%d\n",a); }
A.7
B.8
C.9
D.10
第2题:
设已执行预编译命令#include<string.h>,以下程序段的输出结果是( )。 char s[]=" an apple" ; printf(" %d\n" ,strlen(s));
A.7
B.8
C.9
D.10
第3题:
6、以下程序段的输出结果是________. char s[ ]="an apple"; printf("%d\n",strlen(s));
A.7
B.8
C.9
D.10
第4题:
设已执行预编译命令#include<string.h>,以下程序段的输出结果是
char s[]=" an apple" ;
printf(" %d\n",strlen(s));
A.7
B.8
C.9
D.10
第5题:
下列程序段的输出结果是_____。
cout < < fixed < < 509.123456789 < < endl;