下面程序段的运行结果是char *p="abcdefgh";p+=3;printf("%d\n",strlen(strcpy(P,"ABCD"))); A.8 B.12 C.4 D.7
第1题:
有以下程序: point(char *p) { p+=3; } main() { char b[4]={'a','b','c','d'}, *p=b; point(p); printf("%c\n",*p); } 程序运行后的输出结果是( )。
A.a
B.b
C.c
D.d
第2题:
有以下程序: point(char *p){P+=3;) main() { char b[4]={'a','b','c','d'},*p=b; point(p);printf("%c\n",*p); } 程序运行后的输出结果是( )。
A.a
B.b
C.c
D.d
第3题:
下面程序段的运行结果是( )。 char*p="abcdefgh"; p+ =3; printf("%d\n",stfien(strcpy(p,"ABCD")));
A.8
B.12
C.4
D.7
第4题:
下面程序段的运行结果是 char *p="abcdefgh"; p+=3; printf("%d\n",strlen(strcpy(p,"ABCD")));
A.8
B.12
C.4
D.7
第5题:
以下程序段的输出结果是______。 char *p="abodefgh"; p+=3; printf("%d\n",strlen(strcpy(p,"12345")));
A.8
B.12
C.5
D.7