#include <stdio.h>
当前位置:首页 > C语言开发工程师 > 正文内容

有以下程序
#include <stdio.h>

有以下程序
#include <stdio.h>
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

扫描二维码免费使用微信小程序搜题/刷题/查看解析。

版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。

本文链接:https://20230611.cn/post/3214238.html