网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

已知double a;使用scanf()函数输入一个数值给变量a,正确的函数调用是()

  • A、scanf(“%ld”,&a)
  • B、scanf(“%lf”,&a)
  • C、scanf(“%c”,&a)
  • D、scanf(“%u”,&a)

参考答案

更多 “已知double a;使用scanf()函数输入一个数值给变量a,正确的函数调用是()A、scanf(“%ld”,a)B、scanf(“%lf”,a)C、scanf(“%c”,a)D、scanf(“%u”,a)” 相关考题
考题 若有说明语句 : double *p,a; 则能通过 scanf 语句正确给输入项读入数据的程序段是A)*p= 则能通过 scanf 语句正确给输入项读入数据的程序段是A)*p=a; scanf(" % 1f",p);B)*p=a; scanf(" % f",p);C)p=a; scanf(" % 1f",*p);D)p=a; scanf(" % 1f",p);

考题 (16)若有定义语句:double x,y,*px,*py,执行了px=x, py=y;之后,正确的输入语句是A)scanf(“%f%f”,x,y); B) scanf(“%f%f”,x,y);C) scanf(“%lf%le”,px,py); D) scanf(“%lf%lf”,x,y);

考题 已知:int x,y;double z;则以下语句中错误的函数调用是( )。A)scanf("%d,%1x,%1e",x,y,z); B)scanf("%1d*%d1f",x,y,z);C)scanf("%x%*d%o",x,y); D)scanf("%x%o%6.2f",x,y,z);

考题 若有说明语句:double*P,a;则能通过scanf语句正确给输入项读入数据的程序段是( )。A.*p=&a;scanf("%lf",p);B.*p=a;scanf("%f",p);C.p=a;scanf("%lf",*p);D.p=&a;scanf("%lf",p);

考题 若有“double a;”,则正确的输入语句是( )。A.scanf("%1f",a);B.scanf("%f",a);C.scanf("%lf",a)D.scanf("%le",a);

考题 已知inta,b;doublec;则以下语句中错误的函数调用是 A.scanf("%d,%x,%lf",a,double c;则以下语句中错误的函数调用是A.scanf("%d,%x,%lf",a,b,c);B.scanf("%d,%d,%le",a,b,c);C.scanf("%o,%x,%o",a,b);D.scanf("%d,%o,%e",a,b,c);

考题 已知int a,b;double c;,则以下语句中错误的函数调用是A.scanf("%d,%x,%lf",a,b,c); B.scanf("%d,%d,%le",a,b,c);C.scanf("%o,%x,%o",a,b,c); D.scanf("%d,%o,%e",a,b,c);

考题 若有以下定义语句: double a[5]; int i=0; 能正确给a数组元素输入数据的语句是 ( )A.scanf("%lf%lf%lf%lf%lf,a) ;B.for(i=0;i<=5;i++)scanf("%lf,a+i);C.while(i<5)scanf("%lf",a[i++]);D.while(i<5)seanf("%lf,a+i);

考题 若x,y均定义为int型,z定义为double型,以下不合法的scanf函数调用语句是()。A.scanf("%d%lx,%le",B.scanf("%2d*%d%lf"C.scanf("%x%*d%o",D.scanf("%x%o%6.2f",&x,&y,&z)

考题 若有说明,double*m,n;则能通过sCanf语句正确给输入项读人数据的程序段是( )。A.*m = n;scanf("%lf",m);B.m = (double * ) malloc(10);scanf("%f",m);C.m = n;scanf("%lf",n);D.m = n;scanf("%le",m);

考题 若有"double a;",则正确的输入语句是( )。A.scanf("%lf",a);B.scanf("%f",a);C.scanf("%lf",a)D.scanf("%le",a);

考题 若有说明语句:double*p,a;则通过scanf语句正确给输入项读人数据的程序段是( )。A.*p=&a;scanf("%1f”,p);B.*p=&a;scanf("%f",p);C.p=&a;scanf("%",*p);D.p=&a;scanf("%1f",p);

考题 若有“double a;”,则正确的输入语句是( )。A.scanf("%1f",A);B.scanf("%f",A);C.scanf("%1f",A);D.scanf("%1e",A);

考题 若有“double a;”,则正确的输入语句是( )。A.scanf("%1f",a) ;B.scanf("%f",a) ;C.scanf("%1f",a)D.scanf("%le",a) ;

考题 若有说明:long *p,a;则不能通过scanf语句正确给输入项读入数据的程序段是______。A.*p=a;scanf("%ld",p);B.p=(long*)malloc(8);scanf("%ld",p);C.scanf("%ld",p=a);D.scanf("%ld",a);

考题 若有定义语句:正确的输入语句是( )。A.scanf(”%lf%If"’,X,Y);B.scanf(”%f%f¨X,Y);C.scanf(”%f%f¨,X,y);D.scanf(”%lf%le”,px,PY);

考题 若有说明语句:double*p,a;则通过scanf语句正确给输入项读入数据的程序段是( )。A.*p=scanf(%1f”,p);B.*p=&a;scanf(%f,p);C.p=&a;scanf(%,*p);D.p=&a;scanf(%1f,p);

考题 (24)设有定义:double x[10],*p=x;,以下能给数组x下标为6的元素读入数据的正确语句是A)scanf("%f",x[6]);B)scanf("%lf",*(x+6));C)scanf("%lf",p+6);D)scanf("%lf",p[6]);

考题 若有说明语句:      Double *p,a;  则能通过scanf语句正确给输入项读人数据的程序段是()    A、*p=a;scanf(”%if”,p);B、*p=a;scanf(”%f”,p);C、p=a;scanf(”%if”,*p);D、p=a;scanf(”%if”,p);

考题 设有说明语句:doublex;,下列选项中正确的是()A、scanf("%d",x)B、scanf("%f",x)C、scanf("%lf",x)D、scanf("%lf",x)

考题 若定义x为double型变量,则能正确输入x值的语句是()。A、scanf(“%f”,x);B、scanf(“%f”,x);C、scanf(“%lf”,x);D、scanf(“%5.1f”,x);

考题 已知char a;使用scanf()函数输入一个字符给变量a,不正确的函数调用是()A、scanf(“%d”,a)B、scanf(“%lf”,a)C、scanf(“%c”,a)D、scanf(“%u”,a)

考题 若有说明语句:double *p,a;则能通过scanf语句正确给输入项读入数据的程序段是()A、*p=a;scanf(“%lf”,p)B、*p=a;scanf(“%lf”,*p)C、p=a,scanf(“%lf”,*p)D、p=a;scanf(“%lf”,p)

考题 单选题若有说明语句:      Double *p,a;  则能通过scanf语句正确给输入项读人数据的程序段是()A *p=a;scanf(”%if”,p);B *p=a;scanf(”%f”,p);C p=a;scanf(”%if”,*p);D p=a;scanf(”%if”,p);

考题 单选题已知double a;使用scanf()函数输入一个数值给变量a,正确的函数调用是()A scanf(“%ld”,a)B scanf(“%lf”,a)C scanf(“%c”,a)D scanf(“%u”,a)

考题 单选题已知char a;使用scanf()函数输入一个字符给变量a,不正确的函数调用是()A scanf(“%d”,a)B scanf(“%lf”,a)C scanf(“%c”,a)D scanf(“%u”,a)

考题 单选题若有说明语句:double *p,a;则能通过scanf语句正确给输入项读入数据的程序段是()A *p=a;scanf(“%lf”,p)B *p=a;scanf(“%lf”,*p)C p=a,scanf(“%lf”,*p)D p=a;scanf(“%lf”,p)