试题题干
设int i;float f;double d;long e;,则表达式10+‘a’+f*i-d/e值的类型是。
参考答案
试题解析
10+‘a’是int型,f*i是float型,d/e是double型,则表达式10+‘a’+f*i-d/e值的类型是double。
设int i;float f;double d;long e;,则表达式10+‘a’+f*i-d/e值的类型是。
10+‘a’是int型,f*i是float型,d/e是double型,则表达式10+‘a’+f*i-d/e值的类型是double。