单项选择题
下面程序的输出结果是( )。 #include<stdio.h> #include<string.h> main() {char p1[]="WHO",p2[]="who",str[50]="xyz"; strcpy(str+1,strcat(p1,p2)); printf("%s",str);}
A.xyzWHOwho
B.zWHOwho
C.zWHOwho
D.xWHOwho
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
设有输入语句scanf( a=%d,b=%d,c=%d ,&a,&b,&c),为使变量a的值为2,b的值为4,c的值为8,则从键盘输入数据的正确形式是( )。
A.1,3,2<回车>
B.a=1 b=3 c=2<同车>
C.132<回车>
D.a=2,b=4,c=8<回车>
点击查看答案&解析
单项选择题
下面结构体的定义语句中,错误的是( )。
A.struct ord{int x;int y;int z;};struct ord a;
B.struct ord{int x;int y;int z;};ord a;
C.struct ord{int x;int y;int z;}a;
D.struct{int x;int y;int z;}a;
点击查看答案&解析
相关试题
有以下程序: #include<string.h> in...
若运行以下程序时,从键盘输入ADescriptor...
有以下程序: #include<string.h> vo...
下面程序段的运行结果是( )。 #includ...
下述程序的输出结果是( )。 #include...