网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
下列变量的定义中,错误的是( )。
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 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 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';
考题
有下列函数定义: 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.函数无类型说明,定义有错
考题
设已有定义:float x;,则以下对指针变量P进行定义且赋初值的语句中正确的是( )。A.int*p=(float)x;B.float*p=x;C.float p=x;D.float=1024;
考题
下列一维数组说明中,不正确的是( )。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=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;
热门标签
最新试卷