填空题

int k=10;float a=3.5,b=6.7,c; c=a+k%3*(int)(a+b)%2/4; 则c的值 【6】 。

【参考答案】

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

填空题
算法的计算量的大小称为计算的 【1】 。
单项选择题
下面程序的运行结果是( )。 #include <iostream> using namespace std; template <class T> class A T x,y; public: A(T a,T b)x=a;y=b; int add()return x+y; ; void main() A<double>a(7.8,3.4); A<char>b(7.8,3.4); cout<<a.add()<< , <<b.add();
A.10,10
B.11,11
C.11,10
D.以上答案都不对
相关试题
  • 一个类中有 【10】 个构造函数。
  • 将下面程序补充完整。 #include <iostr...
  • 在编译时才确定的函数调用称为 【12】 ...
  • 在C++类的规定中:静态函数只能给引用类...
  • 在双目运算符中需要声明其右操作数时,完成...