问题
单项选择题
若程序中已包含头文件stdio.h,以下选项中,正确运用指针变量的程序段是
A.int *i=NULL; scanf("%d",i);
B.float *f=NULL; *f=10.5;
C.char t=''m'', *c=&t; *c=&t;
D.long *L; L=''\0'';
答案
参考答案:D
若程序中已包含头文件stdio.h,以下选项中,正确运用指针变量的程序段是
A.int *i=NULL; scanf("%d",i);
B.float *f=NULL; *f=10.5;
C.char t=''m'', *c=&t; *c=&t;
D.long *L; L=''\0'';
参考答案:D