单项选择题
有以下程序
#inlucde
main()
int n,*p=NULL;
*p=&n;
printf("Input n:"); scanf("%d",&p); printf("output n:"); printf("%d\n",p);该程序试图通过指针p为变量n读入数据并输出,但程序有多处错误,以下语句正确的是________。
A.int n,*p=NULL;
B.*p=&n;
C.scanf("%d",&p)
D.printf("%d\n",p);
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
以下结构体类型说明和变量定义中正确的是________。
A.typedef struct int n; char c;REC; REC t1,t2;
B.struct REC; int n; char c;; REC t1,t2;
C.typedef struct REC; int n=0; char c='A';t1,t2;
D.struct int n;char c;REC; REC t1,t2;
点击查看答案
单项选择题
有以下程序main() int i=1,j=2,k=3;if(i++==1&&(++j==3||k++==3)) printf( %d %d %d n ,i,j,k);程序运行后的输出结果是________。
A.1 2 3
B.2 3 4
C.2 2 3
D.2 3 3
点击查看答案
相关试题
以下程序运行后的输出结果是______。...
i%2@i%2==1
以下程序中函数fun的功能是:统计person所...
j+1.
以下程序的功能是:求出数组x中各相邻两个...