以下C语言语句中,正确的是()A、unsigned int a[2*3];B、char s[N+1];C、double f[];D、float b[4]={1,2,3,4,5};

以下C语言语句中,正确的是()

  • A、unsigned int a[2*3];
  • B、char s[N+1];
  • C、double f[];
  • D、float b[4]={1,2,3,4,5};

相关考题:

下列定义变量的语句中错误的是A)int _int;B)double int_;C)char For;D)float US$;

以下定义语句中正确的是A)int a=b=0;B)char A=65+1,b='b';C)float a=1,*b=a,*c=b ;D)double a=0.0,b=1.1;

以下语句定义正确的是( )A)int a[1][4]-{1,2,3,4,5};B)float a[3][]={{1},{2},{3}};c)long a[2][3]={{1},{1,2},{1,2,3},{0,0)};D)double a[][3]={O);

下列定义变量的语句中正确的是( )。A)int _int; B)double 3int_;C)char for; D)float US;

已知程序中已经定义了函数test,其原型是int test(int,int,int);,则下列重载形式中正确的是A.char test (int,int,int);B.double test(int,int,double);C.int test(int,int,int=O);D.float test(int,int,float=3.5F);

下列语句段中,正确的是( )。A.struct{int x;float y;int a[2];unsigned b[3];char name[10];};B.struct stu{unsigned a[3];unsigned b[4];}x;int*p=x.a;C.struct stu{int a;float x[4];}y={1,1.0};float data=y.x;D.struct nd{int a,b;unsigned c[2]=5;};

下列关于数组定义语句不正确的A.int[]a1,a2;B.int a[]={1,2,3,4,5};C.double[] d=new double[8];D.float f[]=new {2.0f,3.5f,5.6f,7.8f};

以下正确的数组定义语句是( )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}

下面关于数组定义语句不正确的是( )。A.int[] a1,a2;B.int a0[]={1,2,3,4,5};C.double[] d=new double[8];D.float f[] =new {2.Of,3.5f,5.6f,7.8f};

C语言中各种基本数据类型的存储空间长度排列为( )A.char≤long≤int≤float≤doubleB.double≤float≤long≤int≤charC.char≤int≤long≤float≤doubleD.float≤int≤long≤char≤double

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

以下能正确定义且赋初值的语句是( )。A.int n1=n2=10;B.char c=32;C.float f=f+1.1;D.double x=12.300.5;

Java语言中数据类型之间的自动类型转换是由优先关系从低级数据类型转换成高级数据类型,下面选项中自动类型转换优先级由低到高排列正确的是A.char→long→int→double→floatB.char→int→long→double→floatC.char→int→long→float→doubleD.char→int→float→double→long

已知各变量的定义如下 int i=8,k,a,b; unsigned long w=5; double x=1.42,y=5.2; 则以下符合C++语言语法的表达式是( )。A.a+=a-= (b=4)*(a=3)B.a=a*3+2C.x%(-3)D.y=float i

以下正确的数组定义语句是______。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};

switch(c) 语句中c可以是int, long, char, float, unsigned int 类型。( )

设有定义:char c;float f;int i;unsignedu;double d;下列各表达式的类型分别是()1.u+92.d!=f&&(i+2)3.8.2*i+c A.1.unsigned,2.int,3.doubleB.1.double,2.double,3.doubleC.1.int,2.double,3.charD.1.unsigned,2.double,3.int

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

以下语句定义正确的是( )。A.int a[1][4]={1,2,3,4,5};B.float a[3][]={{1,2},{2,3},{3,1}};C.long a[2][3]={{1},{1,2},{1,2,3},{0,0}};D.double a[][3]={8};

下列语句段中,正确的是( )。A.struct {int x; float y; int a[2]; unsigned b[3]; char name[10]; };B.structstu { unsigneda[3]; unsigned b[4]; }x; int*p=x.a;C.struc tsu { int a; float x[4]; }y={1,1.0}; floatdat a=y.x;D.stmct nd {int a,b; unsigned c[2]=5; };

下列JAVA语句中,错误的一项是()A、int $e,a,b =10;B、char c,d ='a';C、float e=0.0d;D、double e=0.0f;

以下代码中变量result的可能类型有哪些?byte b = 11;short s = 13;result = b * ++s; A.byte, short, int, long, float, doubleB.boolean, byte, short, char, int, long, float, doubleC.byte, short, char, int, long, float, doubleD.byte, short, charE.int, long, float, double

设有定义:char c;float f;int i;unsignedu;double d;下列各表达式的类型分别是()1.u+92.d!=f(i+2)3.8.2*i+cA、1.unsigned,2.int,3.doubleB、1.double,2.double,3.doubleC、1.int,2.double,3.charD、1.unsigned,2.double,3.int

switch(表达式)语句中的“表达式”,允许的类型是()。A、float,intB、float,int,charC、int,charD、char,double

以下的数组定义语句中,不正确的是()A、 int[] a=new int[5]{1,2,3,4,5};B、 int[,] a=new int[3][4];C、 int[][] a=new int[3][];D、 int[] a={1,2,3,4,5};

在C语言中(以16为PC机为例),5种基本数据类型的存储空间长度的排列顺序为()。A、char int long int = float doubleB、char = int long int = float doubleC、char int long int = float = doubleD、char = int = long int = float double

单选题以下的数组定义语句中,不正确的是()A int[] a=new int[5]{1,2,3,4,5};B int[,] a=new int[3][4];C int[][] a=new int[3][];D int[] a={1,2,3,4,5};