当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

有以下程序:inlucde<stdio.h>main()D)2 3 3{int n,*P=NULL;*p=&n;printf("input n:");scanf("%d


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

参考答案
您可能感兴趣的试题
  • 有以下程序:includemain(){char ch[3][5]={"AAAA","BBB",

  • (29 )有以下程序# include (stdio.h )main (){ int a[5]= { 1 , 2 , 3 , 4 , 5 } , b[5] ={ O

  • (29 )有以下程序# include (stdio.h )main (){ int a[5]= { 1 , 2 , 3 , 4 , 5 } , b[5] ={ O

  • 有以下程序#include<stdio.h>#include<string.h>main(){char str[][20]={“Qne*World

  • 有以下程序#include<stdio.h>#include<string.h>main(){char a[10]=”abcd”;prinff(“

  • 有以下程序: #include<stdio.h> main( ) {int X=011; printf(\%d\n ++x); } 程序运