有以下程序:#include <stdio.h>main( ){ char P[] = {'a','b','c'} ,q[]: "abc"; printf( "% d % d / n", sizeof(p), sizeof(q) );}程序运行后的输出结果是( )。
A.44
B.33
C.34
D.43
[单选题]有以下程序: include main() {char p[]={'a','b','c'},q[10]={'a','b','有以下程序: #include <string.h> main() {char p[]={'a','b','c'},q[10]={'a','b','c'}; printf("%d%d/n",strlen(p),strlen(q)); } 以下叙述中正确的是 ______。A.在给p和q数组置初值时,系统会自动添加字符串结束
[单选题]有以下程序 include main() { char p[20]={'a','b','c','d'},q[]="abc",r[]有以下程序 #include<string.h> main() { char p[20]={'a','b','c','d'},q[]="abc",r[]="abcde"; strcat(p,r);strcpy(p+strlen(q),q); printf("%d/n",strlen(p)); } 程序运行后的输出结果是A
[单选题]有以下程序 include main() { char p[20]={'a','b','c','d'},q[]="abc",r[]有以下程序 #include<string.h> main() { char p[20]={'a','b','c','d'},q[]="abc",r[]="abcde"; strcpy(p+strlen(q),r);strcat(p,q); printf("%d%d/n",sizeof(p),strlen(p)); }
[单选题]有以下程序#includemain( ){ char p[20]={'a','b','c','d'},q[ ]="abc",r[ ]="abcde';strcat(p,r) ;strcpy(p+strlen(q),q);printf("%d/n",strlen(p));}程序运行后的输出结果是A.9B.6C.11D.7
[单选题]有以下程序 include main() { char p[20]={'a','b','c','d'},q[]="abc",r[]有以下程序 #include<string.h> main() { char p[20]={'a','b','c','d'},q[]="abc",r[]="abcde"; strcpy(p+strlen(q),r);strcat(p,q); printf("%d%d/n",sizeof(p),strlen(p)); }
[单选题]有以下程序 include main() { char p[20]={'a','b','c','d'},q[]="abc",r[]有以下程序 #include<string.h> main() { char p[20]={'a','b','c','d'},q[]="abc",r[]="abcde"; strcat(p,r);strcpy(p+strlen(q),q); printf("%d/n",strlen(p)); } 程序运行后的输出结果是A
[单选题]有以下程序: include main() { char p[20]={'a','b','c','d'},q[]="abc",r[]="abcde"有以下程序: #include <string.h> main() { char p[20]={'a','b','c','d'},q[]="abc",r[]="abcde"; strcat(p,r); strcpy(p+strlen(q),q); printf("%d/n",strlen(p));
[单选题]有以下程序:include main ( ){char a :'a',b; printf( "% c," , £« £« a); printf("%c有以下程序: #include <stdio. h> main ( ) { char a :'a',b; printf( "% c," , + + a); printf("%c /n" ,b =a++); }程序运行后的输出结果是( )。A.b,bB.b,cC.a,bD.a,c
[单选题]有以下程序: main() { char p[]={'a','b','c'},q[]="abc"; printf("%d%d/n",sizeof(p),sizeof(q)); } 程序运行后的输出结果是 ______。A.4 4B.3 3C.3 4D.4 3
[单选题]有以下程序: main() {char p[]={'a', 'b', 'c'}, q[]="abc"; printf("% d % d/n", sizeof(p), sizeof(q)); }; 程序运行后的输出结果是______。A.4 4B.3 3C.3 4D.4 3