单项选择题
以下程序运行后的输出结果是 #include<stdio.h> #include<stdlib.h> main(){ int *a, *b, *c; a=b=c(int *) malloc(sizeof(int)); *a=1; *b=2; *c=3; a=b; printf("%d, %d, %d\n", *a, *b, *c); }
A.3,3,3
B.2,2,3
C.1,2,3
D.1,1,3
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下列选项中,能够满足“若字符串s1等于字符串s2,则执行ST”要求的是
A.if(strcmp(s1, s2)==0) ST;
B.if(s1==s2) ST;
C.if(strcpy(s1, s2)==1) ST;
D.if(s1-s2==0) ST;
点击查看答案&解析
单项选择题
以下程序运行后的输出结果是 #include<stdio.h> void fun(int x){ if(x 2>1) fun(x 2); printf( %d , x); } main(){ fun(7); printf( n ); }
A.1 3 7
B.7 3 1
C.7 3
D.3 7
点击查看答案&解析
相关试题
以下程序打开新文件f.txt,并调用字符输出...
以下程序的功能是:借助指针变量找出数组元...
以下fun函数的功能是:找出具有N个元素的一...
以下程序运行后的输出结果是______。...
以下程序运行后的输出结果是______。...