题目内容
(请给出正确答案)
[单选题]
有以下程序段int n,*p=NULL;*p=&n;printf("输入 n:"); scanf("%d",&p);printf("输出 n:"); printf("%d/n",p);该程序段试图通过指针p为变量n读入数据并输出,但程序有多处错误,以下语句正确的是()。
A.scanf("%d",&p);
B.printf("%d/n",p);
C.*p=&n;
D.int n,*p=NULL;
如搜索结果不匹配,请 联系老师 获取答案