[单选题]

若程序中已包含头文件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';

参考答案与解析:

相关试题

若程序中已包含头文件stdio.h,以下选项中,正确运用指针变量的程序段是

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

  • 查看答案
  • 若程序中已包含头文件stdio.h,以下选项中,正确运用指针变量的程序段是 __

    [单选题]若程序中已包含头文件stdio.h,以下选项中,正确运用指针变量的程序段是 ______。A.int*i=NULL; scanf("%d",i);B.float * f=NULL *f=19.5;C.char t='m',*c=&t; *c=&t;D.long *L; L='/0';

  • 查看答案
  • 若程序中已包含头文件stdio.h,以下选项中,正确运用指针变量的程序段是

    [单选题]若程序中已包含头文件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';

  • 查看答案
  • 以下选项中,正确运用指针变量的程序段是()。

    [单选题]以下选项中,正确运用指针变量的程序段是( )。A.int*i=NULL;B.float*f=NULL; scanf("%d",i); *f=10.5;C.char t='m',*C=&t;D.long*L; *C=&t; L='0';

  • 查看答案
  • strlen()库函数与stdio.h头文件问题?

    [试题]strlen()库函数与stdio.h头文件问题?strlen()是一个计算字符串长度的这么一个库函数,这个库函数是定义在string.h这个头文件里的,要想使用这个库函数就必须调用预处理命令将string.h添加到当前的代码中,可是为什么在调用string.h这个头文件的基础上还要调用stdio.h这个头文件呢?stdio.h只是一个输入输出函数的这么一个头文件,跟strlen()库函数有什么关系,,,求解。

  • 查看答案
  • ( 29 )有以下程序# include ( stdio.h )main (){

    [单选题]( 29 )有以下程序# include ( stdio.h )main (){ int a[5]= { 1 , 2 , 3 , 4 , 5 } , b[5] ={ O , 2 , 1 , 3 , 0 } , i , s = 0 ;for ( i = 0 ; i < 5 ; i++ ) s = s+a[b[i] ] ) ;printf ( " %d \ n ", s ) ;}程序运行后的输出结果是A. ) 6B. ) 10C. ) 11D. ) 15

  • 查看答案
  • ( 21 )有以下程序# include ( stdio.h >main (){

    [单选题]( 21 )有以下程序# include ( stdio.h >main (){ int a = l ; b = 2 ;for ( ; a < 8 ; a++ ) { b+=a ; a+=2 ; }printf ( " %d , %d \ n ", a , b ) ;}程序运行后的输出结果是A. ) 9 , 18B. ) 8 , 11C. ) 7 , 11D. ) 10 , 14

  • 查看答案
  • 若已包括头文件<stdio.h>和<string.h>,运行下面程序的输出结果是

    [单选题]若已包括头文件<stdio.h>和<string.h>,运行下面程序的输出结果是( )。A.)08967B.)0894567C.)089567D.)089567

  • 查看答案
  • 现有如下程序段,则程序段的输出结果为(16)。 #include"stdio.h

    [主观题]现有如下程序段,则程序段的输出结果为 (16) 。#include "stdio.h"int fun(){static int k;return k;}main(){int m;m=fun();printf("%d\n",m);}

  • 查看答案
  • 阅读以下程序及对程序功能的描述,其中正确的是 #include <stdio.h

    [单选题]阅读以下程序及对程序功能的描述,其中正确的是#include <stdio.h>main(){ FILE *in,*out;char ch,infile[10],outfile[10];printf("Enter the infile name:/n");scanf("%s",infile);printf("Enter the outfile name: /n");scanf("%s",outfile);if((in=fopen(infile,"r"))==NUL

  • 查看答案