填空题

若有定义:int x=1,y=2;float a=3.7,b=2.1;则(x+y)%2+(int)a/(int)b表达式的值为______。

【参考答案】

B
<上一题 目录 下一题>
热门 试题

填空题
以下程序的运行结果是______。 main() int a=1,b=2,c; if(a>b)c=1; else if(a==b)c=0; else c=-1; printf( %d n ,c);
填空题
以下程序的功能是:对输入的一行字符中的数字字符的字面值累加,输出此累加和, 请填空。 #include<stdio.h> #include<ctype.h> main() char c; int a,s=0; while(______) if(isdigit(c)) a=c-’0’;s+=a; printf( S=%d ,s);
相关试题
  • 下面程序的运行结果是______。 #de...
  • 有以下程序 #include<stdio.h> typed...
  • 下列函数从字符数组s[]中删除和c一样的字...
  • 下面程序的运行结果是______。 #in...
  • 下面程序的输出结果是______。 #in...