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

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

下列变量的定义中,错误的是( )。

A.int x=3;

B.float f;d;

C.String s=”Hell0”;

D.boolean b=true:


参考答案

更多 “ 下列变量的定义中,错误的是( )。A.int x=3;B.float f;d;C.String s=”Hell0”;D.boolean b=true: ” 相关考题
考题 下列变量定义中,不合法的是A.Int $X;B.int _123;C.int Summer_2010_gross_saIe;D.Int #dim;

考题 下列变量定义中,错误的是______。A) int x=3;B) float f;d;C) String s="Hello!";D) boolean b=true;A.B.C.D.

考题 下列变量的定义中,错误的是()。A.int x=3;B.float f;d;C.String s="Hello";D.boolean b=true;

考题 下列变量名定义错误的是()。A.a4B.sumC._chD.f(x)

考题 下列整数的定义中,错误的是( )。A.int f=314.;B.int a=012;C.int i=189;D.int d=0x123;

考题 下列的变量定义中,错误的是A.int a;bB.float a,b1=1.23f;C.char ch='d';D.public int i=100,j;

考题 若已定义x为int类型变量,说明指针变量p的正确语句是______。A.int p=x;B.int*p=x;C.int *p=x;D.*p=*x;

考题 以下正确的数组定义语句是( )A.int y[1][4]={1,2,3,4,5,}B.float x[3][]={{1},{2},{3}}C.long s[2][3]={{1},{1,2}{1,2,3,}}D.double t[][3]={0}

考题 若程序中已包含头文件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,以下选项中,正确运用指针变量的程序段是 ______。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';

考题 设变量a是int型,f是int型,i是double型,则表达式10+a+i*f值的数据类型为A.int B.float C.double D.不确定

考题 以下正确的数组定义语句是______。A.int y[1][4]={1,2,3,4,5};B.float x[2][]={{1},{2),{3}};C.long s[2][3]={{1},{1,2},<1,2,3}};D.double t[][3]={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';

考题 有下列函数定义:A.int类型B.float类型C.void类型D.函数无类型说明,定义有错

考题 有下列函数定义: fun(float h) { printf(%f,%f\n,h,h*h);) 该函数的类型是( )。A.int类型B.float类型C.void类型D.函数无类型说明,定义有错

考题 在整型指针变量ptr1、ptr12的定义中,错误的是 ______。A.int x, *ptr1, ptr2;B.int*ptrl, x, *ptr2;C.int x,*ptrl=x,*ptr2;D.int*ptr1, x,*ptr2=x;

考题 下列数组定义中错误的是( )。A.int x[][3]={0};B.int x[2][3]={{1,2},{3,4},{5,6}};C.int x[][3]={{1,2,3},{4,5,6}};D.int x[2][3]={1,2,3,4,5,6};

考题 有下列函数定义: fun(float h) { printf("%f,%f\n",h,h*h);) 该函数的类型是( )。A.int类型SX 有下列函数定义: fun(float h) { printf("%f,%f\n",h,h*h);) 该函数的类型是( )。A.int类型B.float类型C.void类型D.函数无类型说明,定义有错

考题 下列定义变量的语句中错误的是( )。A.int jnt;B.double int_;C.char For;D.float US$;

考题 设已有定义:float x;,则以下对指针变量P进行定义且赋初值的语句中正确的是( )。A.int*p=(float)x;B.float*p=x;C.float p=x;D.float=1024;

考题 下列变量的定义中,错误的是( )。A.int X=3;B.float f;d;C.String s="Hell0";D.boolean b=true;

考题 下列一维数组说明中,不正确的是( )。A.int N;B.float a[]={1,6,6,0,2}; scanf("%d",N); int b[N];C.#define S 10D.int a[S+5];

考题 下列整数的定义中,错误的是( )。A.int f=314.;B.int a=01 2;C.int i=1 89;D.int d=0x123;

考题 下面哪个是非法的( )。A.int I=32;B.float f=45.0;C.double d=45.0;D.char c ='a';

考题 下列定义变量错误的是( )。A.int al;B.char chl;C.int dl=10;D.bool bll;

考题 下列整数的定义中,错误的是( )。 A.int f=314.;B.int a=012;C.int i=189;S 下列整数的定义中,错误的是( )。A.int f=314.;B.int a=012;C.int i=189;D.int d=0x123;

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

考题 单选题下列变量定义中,错误的是(  )。A int x=3;B float f;d;C String S=“Hello!”;D boolean b=true;