[单选题]

以下程序的执行结果是( )。

A.5

B.6

C.7

D.8

参考答案与解析:

相关试题

以下程序的执行结果是( )。

[单选题]以下程序的执行结果是( )。A.a=7,b=8B.a=8,b=7C.a=7,b=9D.a=8,b=9

  • 查看答案
  • 以下程序的执行结果是()。#includetemplateclass Sampl

    [单选题]以下程序的执行结果是()。includetemplateclass Sample{T n:public:Sample以下程序的执行结果是( )。 #include<iostream.h> template<class T> class Sample { T n: public: Sample(T i) {n=i;} void operator++(); void disp(){cout<<"n="<<n<<endl;} }; template<class T> void Sample<T>:

  • 查看答案
  • 以下程序的执行结果是()。#includetemplateclass Sampl

    [单选题]以下程序的执行结果是()。includetemplateclass Sample{ T n;Public: Samp以下程序的执行结果是( )。 #include<iostream.h> template<class T> class Sample { T n; Public: Sample (T i){n=i;) void operator ++(); void disp() {cout<<"n="<<n<<endl;} }; template<class T> void Sample<T

  • 查看答案
  • 有以下程序: 程序执行后的输出结果是( )。

    [单选题]有以下程序:程序执行后的输出结果是( )。A.55.B.50C.45D.60

  • 查看答案
  • 有以下程序: 程序执行后的输出结果是( )。

    [单选题]有以下程序:程序执行后的输出结果是( )。A.x=4B.X=8C.x=6D.x=12

  • 查看答案
  • 有以下程序: 程序执行后的输出结果是( )。

    [单选题]有以下程序:程序执行后的输出结果是( )。A.5,11B.5,5C.11,11D.11,5

  • 查看答案
  • 有以下程序: 程序执行后的输出结果是( )。

    [单选题]有以下程序:程序执行后的输出结果是( )。A.20B.25C.45D.36

  • 查看答案
  • 有以下程序: 程序执行后的输出结果是( )。

    [单选题]有以下程序:程序执行后的输出结果是( )。A.1B.2C.3D.4

  • 查看答案
  • 有以下程序: 程序执行后的输出结果是( )。

    [单选题]有以下程序:程序执行后的输出结果是( )。A.y=一1B.Y=0C.y=1D.while构成无限循环

  • 查看答案
  • 有以下程序: 程序执行后的输出结果是( )。

    [单选题]有以下程序:程序执行后的输出结果是( )。A.5B.24C.32D.40

  • 查看答案
  • 以下程序的执行结果是( )。