[多选题]

关于float数定义正确的是()

A . float f=1.0

B . float=x0x0687

C . float=-5

D . float=1.8f

参考答案与解析:

相关试题

下面的说法中正确的是()。Ⅰ:有float型数据定义float f1=100.0

[单选题]下面的说法中正确的是( )。 Ⅰ:有float型数据定义float f1=100.00f;Float F1=new float(f1),要把float型转换为double型时用Double d1=F1.doubleValue()。 Ⅱ:有double型数据定义double d1=100.00;Double D1=new Double(d1),要把double型转换为int型时用 int il=D1.intValue()。 Ⅲ:当把int型转换为double型时,该转换是不能自动转换的,需要强制类

  • 查看答案
  • float类型数的表示范围是()。

    [单选题]float类型数的表示范围是( )。A.±3.40282347E37B.±1.79769313486231570E308C.±3.40282347E38D.±1.79769313486231570E307

  • 查看答案
  • 若有定义 : float x=1.5; int a=1,b=3,c=2; 则正确

    [单选题]若有定义 : float x=1.5; int a=1,b=3,c=2; 则正确的 switch 语句是A.)switch(x){ case 1.0: printf("*/n");case 2.0: printf("**/n");}B.)switch((int)x);{ case 1: printf("*/n");case 2: printf("**/n");}C.)switch(a+b){ case 1: printf("*/n");case 2+1: printf("*

  • 查看答案
  • 若有定义语句:float x[6];则以下对x数组元素的正确引用形式是()。

    [单选题]若有定义语句:float x[6];则以下对x数组元素的正确引用形式是()。A.x£«2B.&x[6]C.*(x£«2)D.*&am若有定义语句:float x[6];则以下对x数组元素的正确引用形式是( )。A.x+2B.&x[6]C.*(x+2)D.*&x[6]

  • 查看答案
  • 若有定义:float x=1.5;int a=1,b=3,c=2;则正确的swi

    [单选题]若有定义:float x=1.5;int a=1,b=3,c=2;则正确的switch语句是( )。A.switch(x)B.switch((int)x); {case 1.0:printf("*/n"); {case 1:printf("*/n"); case 2.0:printf("**/n");} case 2:printf("**/n");}C.switch(a+B)D.switch(a+B){case 1;printf("*/n"); {case 1:printf(

  • 查看答案
  • 若有定义:float x=1.5;int a=1,b=3,c=2;则正确的swi

    [单选题]若有定义:float x=1.5;int a=1,b=3,c=2;则正确的switch语句是( )。A.switch(x) {case 1.0:printf("*/n"); case 2.0:printf("**/n");}B.switch((int)x); {case 1:printf("*/n"); case 2:printf("**/n");}C.switch(a+B){case 1:printf("*/n"); case 2+1:printf("**/n");}D

  • 查看答案
  • 若有定义:float x=1.5;int a=1,b=3,c=2;,则正确的sw

    [单选题]若有定义:float x=1.5;int a=1,b=3,c=2;,则正确的switch语句是A.switch(x) {case 1.0:printf("*/n"); case 2.0:printf("**/n");}B.switch((int)x); {case 1:printf("*/n"); case 2:printf("**/n");}C.switch(a+B) {case 1:printf("*/n"); case 2+1:printf("**/n");}D.s

  • 查看答案
  • 若有定义float x=1.5;int a=1,b=3,c=2;,则正确的swi

    [单选题]若有定义float x=1.5;int a=1,b=3,c=2;,则正确的switch语句是A.swimh(x) {case 1.0:printf("*/n"); case 2.0:printf("**/n");}B.switch((int)x); {case 1:printf("*/n"); case 2:printf("**/n");}C.switch(a+D. {case 1:pfintf("*/n"); case 2+1:pfintf("**/n");}switc

  • 查看答案
  • 若有定义float x=1.5;int a=1,b=3,c=2;,则正确的swi

    [单选题]若有定义float x=1.5;int a=1,b=3,c=2;,则正确的switch语句是A.switch(x) {case 1.0:printf("*/n"); case 2.0:printf("**/n");}B.switch((int)x); {case1:printf("*/n"); case 2:printf("**/n");}C.switch(a+b) {case 1:printf("*/n"); case 2+1:printf("**/n");}D.swi

  • 查看答案
  • 若有定义:float x=1.5;int a=1,b=3,c=2;则正确的swi

    [单选题]若有定义:float x=1.5;int a=1,b=3,c=2;则正确的switch语句是______。A.switch (x) {case 1.0: printf("*/n"); case 2.0: printf("**/n");}B.switch ( (int)x); {case 1: printf("*/n"); case2: printf("**/n");}C.switch (a+b) {case 1:printf("*/n"); case 2+1: printf(

  • 查看答案
  • 关于float数定义正确的是()