网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
1、int a,b[2],c; 声明是合法的
参考答案和解析
正确
更多 “1、int a,b[2],c; 声明是合法的” 相关考题
考题
( 29 )已知类 MyClass 声明如下:class MyClass{int n;public;MyClass ( int k ) : n ( k ) {}int getValue () const{return n;}};在下列数组定义中正确的是A ) MyClass x1[2];B ) MyClass x2[2]={new MyClass ( 1 ) , new MyClass ( 2 ) };C ) MyClass *x3[2];D ) MyClass *x4[2]={MyClass ( 1 ) , MyClass ( 2 ) };
考题
函数int test(int a,int b=1,int c:0),下列调用不合法的个数是 test(0); test(0,0); test( ); test(0,0,0);A.0B.1C.2D.3
考题
已知类MyClass声明如下:class MyClass{int n;public:MyClass(int k):n(k){}int getValue()const{return n;}};在下列数组定义中正确的是A.MyClass xl[2];B.MyClass x2[2]={new MyClass(1),new MyClass(2)};C.MyClass * x3[2];D.MyClass * x412]={MyClass(1),MyClass(2)};
考题
有如下类声明: class TestClass int i; private:int j; protected:int k; public:int m,n; 其中,私有成员的数量为( )。A.0B.1C.2D.3
考题
合法的数组定义是 ( )A.int a[ ]="string";B.int a[5]={0,1,2,3,4,5};C.char a="string";D.char a={0,1,2,3,4,5};
考题
有如下类声明: c1ass TeStClass { int i; private:int j; protected:int k; public:int m,n; }; 其中,私有成员的数量为( )。A.0B.1C.2D.3
考题
下列合法的数组定义是______。A.int a[]="string";B.int a[5]={0,1,2,3,4,5};C.char s="string";D.char a[]={0,1,2,3,4,5};
考题
下面各项声明中合法的是( )。 Ⅰ:long1=4990; Ⅱ:int i=4L; Ⅲ:floatf=1.1; Ⅳ:double d=34;A.Ⅱ、ⅢB.Ⅱ、Ⅲ、ⅣC.Ⅰ、ⅣD.Ⅲ、Ⅳ
考题
现有如下五个声明: int a_really_really_really_long_variable_name = 5; int _hi =6; int big = Integer.getInteger("7"); int $dollars = 8; int %percent = 9; 有几个可以通过编译?() A、1B、2C、3D、4
考题
下面哪一个是合法的数组声明和构造语句()A、 int[] ages = [100];B、 int ages = new int[100];C、 int[] ages = new int[100];D、 int() ages = new int(100);
考题
以下声明合法的是()A、default String sB、public final static native int w( )C、abstract double dD、abstract final double hyperbolicCosine( )
考题
对方法声明中的错误代码:function Add(int i1,int i2)分析正确的是()A、参数不能指定数据类型B、没有指定返回类型C、没有指定访问D、Function不是方法声明的关键字
考题
合法的数组定义是()A、int a[ ]="string";B、int a[5]={0,1,2,3,4,5};C、char s="string";D、char a[ ]={0,1,2,3,4,5};
考题
现有: 1. interface Altitude { 2. //insert code here 3. } 和4个声明: int HIGH = 7; public int HIGH = 7; abstract int HIGH = 7; interface int HIGH = 7; 分别插入到第2行,有多少行可以编译?() A、 0B、 1C、 2D、 3E、 4
考题
单选题对方法声明中的错误代码:function Add(int i1,int i2)分析正确的是()A
参数不能指定数据类型B
没有指定返回类型C
没有指定访问D
Function不是方法声明的关键字
考题
单选题现有: 1. interface Altitude { 2. //insert code here 3. } 和4个声明: int HIGH = 7; public int HIGH = 7; abstract int HIGH = 7; interface int HIGH = 7; 分别插入到第2行,有多少行可以编译?()A
0B
1C
2D
3E
4
考题
单选题下面哪一个是合法的数组声明和构造语句()A
int[]ages=[100];B
int ages=new int[100];C
int[]ages=new int[100];D
int()ages=new int(100);
考题
单选题下面哪一个是合法的数组声明和构造语句()A
int[] ages = [100];B
int ages = new int[100];C
int[] ages = new int[100];D
int() ages = new int(100);
考题
单选题以下声明合法的是()A
default String sB
public final static native int w( )C
abstract double dD
abstract final double hyperbolicCosine( )
热门标签
最新试卷