单项选择题
有以下程序: #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.1,1,3
B.2,2,3
C.1,2,3
D.3,3,3
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序:#include <stdio.h>struct S{ int a, b; } data[2]={10, 100, 20, 200};main(){ struct S p=data[1];printf( %d n , ++(p.a));}程序运行后的输出结果是______。
A.10
B.11
C.20
D.21
点击查看答案&解析
单项选择题
有以下程序:#include <stdio.h>#define PT 3.5;#define S(X) PT*x*x;main(){ int a=1, b=2; printf( %4.1f n , s(a+b)); }程序运行后的输出结果是______。
A.7.5
B.31.5
C.程序有错无输出结果
D.14.0
点击查看答案&解析
相关试题
以下叙述中正确的是______。
有以下程序:#include <stdio.h>main...
以下叙述中错误的是______。