97.0f
1/2*a==0.0f
因为1/2==0
所以实际是b='a';
b的值是字符'a'的ASCII码也就是97,然后又由于b是float类型的,作自动类型转换成97.0f
设有定义语句float a=3.0,b;则执行b='a'+1/2*a;表达式后b的值 是
设有定义语句float a=3.0,b;则执行b='a'+1/2*a;表达式后b的值 是
其他人气:461 ℃时间:2020-03-22 13:22:14
优质解答
我来回答
类似推荐
- 若有定义语句int a=7;float x=2.5,y=4.7;则表达式x+a%3*(int)(x+y)%2/4的值为多少
- 若有定义语句int a=7;float x=2.5,y=4.7;则表达式x+a%3*(int)(x+y)%2/4.请问a%3的值是几?
- 若有定义:int b=7;float a=2.5,c=4.7;则下面的表达式 a+(int)(b/3*(int)(a+c)/2)%4 的值
- 若有定义:float a=3.0,b=4.0,c=5.0; 则表达式 1/2*(a+b+c)的值为?
- 设有定义int a[]={0,1,2,3,4},*p;,执行语句p=a+2;后,表达式*p的值为( ) A)1 B)2 C)3 D)4
猜你喜欢
- 1Can you tell me what do you think about me?I just want to konw you opinions.此句有错没
- 2He would like to stay ____home_____his qarents.A at,with B in,with C at,on Dat.in
- 3I think watching TV too much is bad for our eyes.改为同义句.
- 4()的文字 在括号里填上合适的词语
- 5生活 工作创新无处不在 请问创新到底什么个意思
- 6这个再帮下,倒数第5和第4行*0.8和0.9怎么加上去
- 7病句修改 请详解
- 8I am in the music club
- 9地球上什么物质密度最大?如题
- 10She likes applees.likes为什么加S?名字后like 为什么不用加s?