有以下程序:
#include <stdio.h>
main( )
intn,*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",p);

有以下程序:
#inlucde<stdio.h>
main( )
D) 2 3 3
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",p);

有以下程序
#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",p);

有以下程序: #include main( ) {int n,*P=NULL; *P=&n; prinff("Input n:");scanf("%d",&p);prinff("output n:");prinff("%d\n",P); } 该程序试图通过指针P为变量n读入数据并输出,但程序有多处错误,以下语句正确的是【 】。

A:intn,*P=NULL; B:*P=&n; C:scanf("%d",&p) D:printf("%d\n",p);

有以下程序: #include main( ) {int n,*P=NULL; *P=&n; prinff("Input n:");scanf("%d",&p);prinff("output n:");prinff("%d\n",P); } 该程序试图通过指针P为变量n读入数据并输出,但程序有多处错误,以下语句正确的是【 】。

A:intn,*P=NULL; B:*P=&n; C:scanf("%d",&p) D:printf("%d\n",p);

设变量p是指针变量,语句p=NULL; 是给指针变量赋NULL值,它等价于()。

A:p=""; B:p="0"; C:p=0; D:p='';

设变量p是指针变量,语句p = NULL; 是给指针变量赋NULL值,它等价于

A:p = ""; B:p = '0'; C:p = 0; D:p = ";

微信扫码获取答案解析
下载APP查看答案解析