以下程序段的输出结果是 ______。 #include<iostream.h> void main(){ char*p[5]={"ABCD","EF","GHI","JKL","MNOP"}; char **q=p; int i; for(i=0;i<=4;i++) cout<<q[i]; }
A.ABCDEFGHIJKL
B.ABCD
C.ABCDEFGHIJKMNOP
D.AEGJM
第1题:
有以下程序 #include<stdio.h> main() { char*a[]={"abcd","ef","gh","ijk"}; int i; for(i=0;i<4;i++) printf("%c",*a[i]); } 程序运行后的输出结果是______。
A.agei
B.dfhk
C.abcd
D.abcdefghijk
第2题:
有以下程序 #include.<string.h> main() { char *p="abcde\ofghjik\0"; printf("%d\n",strlen(p)); } 程序运行后的输出结果是
A.12
B.15
C.6
D.5
第3题:
运行以下程序,输出结果是 (27) #include <stdio.h> int main() { char *p[]={"ABC","DEF","GHI"}; puts(p[1]); return 0; }
第4题:
以下程序段的输出结果是( )。 #include<stdio.h> main() {char p[][4]={"ABC","DEF","GHI"}; int i; for(i=0;i<3;i++) puts(p[i]); }
A.A B C
B.A D G
C.A B C D E F G H I
D.A B C
第5题:
以下程序的输出结果是【 】。
include <stdio.h>
include <string.h>
char *fun(char *t)
{ char *p=t;
return (p+strlen(t)/2);
}
main()
{ char *str="abcdefgh";
str=ftm(str);
puts(str);
}