网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

语句cout<<(24>>3)<< endl;的输出结果是()

  • A、12
  • B、9
  • C、6
  • D、3

参考答案

更多 “语句cout(243) endl;的输出结果是()A、12B、9C、6D、3” 相关考题
考题 ( 27 )有如下程序:#includeusing namespace std;class test {private:int a;public:test () {cout ” constructor ” ENDL;}test ( int a ) {coutAENDL;}test ( const test & _test ){a=_testa;cout ” copy constructor ” ENDL;}test () {cout ” destructor ” ENDL;}};int main ()}test A ( 3 )return0;运行时输出的结果是A ) 3B ) constructordestruclorC ) copy constructordstructorD ) 3destruclor

考题 执行下列语句序列: inti=0;while(i25)i+=3;cout<<i; 输出结果是( )。A.24B.25C.27D.28

考题 ( 20 )已知数组 arr 的定义如下:int arr[5] = {1,2,3,4,5};下列语句中输出结果不是 2 的是A ) cout *arr+1 endl;B ) cout *(arr+1)endl;C ) cout arr[1] endl;D ) cout *arr endl;

考题 语句cout<<setiosflagags(ios::showpos)<<125<<"/t"<<-125<<endl;的输出结果为【 】。

考题 若有以下变量定义和函数调用语句: int a=25; print_value(a); 则执行下面函数后正确的输出结果是( )。 void print_value(int*x) { cout<<++*x<<endl; }A.23B.24C.25D.26

考题 已知数组arr的定义如下: intarr[5]={1,2,3,4,5};下列语句中输出结果不是2的是( )。A.cout*arr+1endl;B.COUt*(art+1)endl;C.coutarr[1]endl;D.COUt*arrendl:

考题 执行语句序列 iht i=0;while(i<25)i+=3;cout<<i; 输出结果是A.24B.25C.27D.28

考题 执行语句序列 inti=0;while(i<25)i+=3;cout<<i; 输出结果是A.24B.25C.27D.28

考题 已知数组arr的定义如下: int arr[5]={1,2,3,4,5}; 下列语句中,输出结果不是2的是A.cout<<*arr+1<<endl;B.tout<<*(arr+1)<<endl;C.cout<<arr[1]<<endl;D.eout<<%arr<<endl;

考题 若有如下变量定义和函数调用语句: inta=5; fun(A) ; 则执行下面函数后正确的输出结果是( )。 void fun(int*x) { cout<<++*x<<endl; }A.3B.4C.5D.6

考题 下列程序的输出结果是【】。 include void main() { int i(1),j(2),k(3),a(10); if(!i 下列程序的输出结果是【 】。include<iostream.h>void main(){int i(1),j(2),k(3),a(10);if(!i)a--;else if(j)if(k)a=5;elsea=6;a++;cout<<a<<endl;if(i<j)if(i!=3)if(!k)a=1;else if(k)a=5;6+=2;cout<<a<<endl;

考题 以下三条输出语句分别输出什么?char str1[] = "abc";char str2[] = "abc";const char str3[] = "abc";const char str4[] = "abc";const char* str5 = "abc";const char* str6 = "abc";cout boolalpha ( str1==str2 ) endl; // 输出什么?cout boolalpha ( str3==str4 ) endl; // 输出什么?cout boolalpha ( str5==str6 ) endl; // 输出什么?

考题 有以下程序main( ){ int a=5,b=4,c=3,d=2;if(a>b>c)cout<<d<<endl;else if((c-1=d)==1)cout<<d+1<<endl;elsecout<<d+2<<endl;}执行后输出结果是A.2B.3C.4D.编译时有错,无结果

考题 下列语句中,输出与众不同的是A.cout<<"1."<<setfill('')<<"Hello!"<<endl;B.cout<<"1."<<''<<"Hello! \n";C.cout<<"1. Hello!"<<endl;D.cofit<<"1."<<setw(7)<<"Hello!";

考题 有如下程序: #inCludeiostream using namespaCe std; Class test{ private: int a; publiC: test( ){Cout”ConstruCtor”endl;} test(int A.{Coutaendl;} test(Const test_test){ a=test.a: Cout”Copy ConstruCtor”endl: } test( ){Cout”destruCtor”endl;} }; int main( ){ test A(3); return 0; } 执行这个程序的输出结果是( )。A.3B.ConstruCtor destruCtorC.Copy ConstruCtor destruCtorD.3 destruCtor

考题 以下程序的执行结果是______. include c1ass A { public: virtual void funl () 以下程序的执行结果是______.include<iostream.h>c1ass A{public:virtual void funl () { cout<<"A fun1"<<endl;}virtual void fun2 () {cout<<"A fun2"<<endl;void fun3 () {cout<<" A fun 3 "<<endl:)void fun4 () {cout<<" A fun4 "<<endl:}

考题 下列程序段的输出结果是_____。cout < < fixed < < 509.123456789 < < endl;

考题 语句cout(33) endl;的输出结果是()A、24B、12C、9D、6

考题 语句cout(1|2)","(1||2) endl;的输出结果是()A、0,0B、1,1C、2,0D、3,1

考题 以下语句中,输出结果与众不同的一个是()A、cout<<"1. "<<setfill(’ ’)<< "Hello! "<<endl;B、cout<<"1."<<’ ’ <<"Hello! /n";C、cout<<"1. Hello! "<<endl;D、cout<<"1. "<<setw(7)<< "Hello! ";

考题 语句cout(2^5) endl;的输出结果是()A、1B、3C、7D、10

考题 设有char *s="ABCDE";cout (s+1) endl;输出结果是()A、AB、BC、ABCDD、BCD

考题 单选题语句cout(1|2)","(1||2) endl;的输出结果是()A 0,0B 1,1C 2,0D 3,1

考题 单选题语句cout(2^5) endl;的输出结果是()A 1B 3C 7D 10

考题 单选题语句cout(12)","(12) endl;的输出结果是()A 0,0B 0,1C 1,0D 1,1

考题 单选题语句cout(33) endl;的输出结果是()A 24B 12C 9D 6

考题 单选题语句cout3) endl;的输出结果是()A 12B 9C 6D 3