下面赋值非法的是()A、longtest=012B、shorts=10C、intother=(int)trueD、doubled=1234.05
下面赋值非法的是()
- A、longtest=012
- B、shorts=10
- C、intother=(int)true
- D、doubled=1234.05
相关考题:
要随机产生一个两位数并赋值给y,下面语句正确的是 ______。A.y=10+Int(91*RnD)B.y=Int(10+90*RnD)C.y=10+Int(89*RnD)D.y=10+Int(90*RnD)
对于下面程序,对p进行赋值正确的是( )。 class A{ public:fun(int i){cout<<i<<endl;} }; main(){ void(A::*p)(int); }A.p=fun;B.p=fun();C.p=A::fun;D.p=A::fun()
Java语言中数据类型之间的自动类型转换是由优先关系从低级数据类型转换成高级数据类型,下面选项中自动类型转换优先级由低到高排列正确的是A.char→long→int→double→floatB.char→int→long→double→floatC.char→int→long→float→doubleD.char→int→float→double→long
5. If you attempt to add an int, a byte, a long, and a double, the result will be a __________ value. A. longB. byteC. doubleD. int
下面的函数原型非法的是 ______。A.void f(int a=1,int b=1)B.int f(double f,char s,int i=1,int j)C.void f(int a, int b)D.int f(double f,char s,int i=1,int j=0)
要随机产生一个两位数并赋值给y,下面语句正确的是( )。A.y=10+INT(90*RND)B.x=10+INT(89*RND)C.x=INT(10+90*RND)D.x=10+INT(49+91*RND)
下面能正确定义数组,并正确赋值的语句是_______。A.int N=5,b[N][N]B.int a[1][2]={{1},{3}}C.int c[2][]={{1,2},{3,4}}D.int d[3][2]={{1,2},{34}}
基本数据类型精度从低到高排列正确的是()A.byte short int float doubleB.byte short int double floatC. short byte int float doubleD. short byte int double float
单选题下面赋值非法的是()Alongtest=012Bshorts=10Cintother=(int)trueDdoubled=1234.05