单项选择题
下面程序的输出结果是
#include<stdio.h>
#include<string.h>
main()
char *pl="abc",*p2="ABC",str[50]="xyz";
strcpy(str+2,strcat(p1,p2));
printf("%s\n",str);
A.xyzabcABC
B.zabcABC
C.xyabcABC
D.yzabcABC
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
以下选项中不属于字符常量的是
A.'C'
B.'C'
C.'\xCC'
D.'\072'
点击查看答案&解析
单项选择题
若有定义:float x=1.5;int a=1,b=3,c=2;,则正确的switch语句是
A.switch(x)
case 1.0:printf("*\n");
case 2.0:printf("**\n");
B.switch((int)x);
case 1:printf("*\n");
case 2:printf("**\n");
C.switch(a+b)
case 1:printf("*\n");
case 2+1:printf("**\n");
D.switch(a+b)
case 1:printf("*\n");
case c:printf("**\n");
点击查看答案&解析
相关试题
有以下程序 #include <stdio.h> mai...
下列程序的运行结果为 #include<stdio....
下面说明不正确的是
若变量已正确定义,有以下程序段 int a=...
以下不属于对象的基本特点的是