更多"执行以下程序后的输出结果为 ( )。#include<iostrea"的相关试题:
[单项选择]以下程序输出的结果是( )。 #include<iostream> using namespace std; int main( ) { int **x,*y,z=10; y=&z; x=&y; cout<< **x+1<<endl; return 0; }
A. 11
B. x的地址
C. y的地址
D. 运行错误
[单项选择]以下程序的输出结果是( )。 #include<iostream> using namespace std; int main( ) { cout.fill('*'); cout.width(5); cout<<hex<<100<<endl; return ( ); }
A. **100
B. ***64
C. 100**
D. 64***
[单项选择]下面的程序输出结果是( )。 #include<iostream> using namespace std; void add( ) { static int x; x++; cout<<x<<''; } int main( ) { for(int i=0;i<3;i++) add( ); return 0; }
A. 111
B. 123
C. 222
D. 333
[单项选择]下面程序的输出结果是( )。 #include<iostream> using namespace std; int main( ) { int a=2,b= -1,c=2; if(a<b) if(b<0) c=0; else c+=1; cout<<c<<endl; return 0; }
A. 0
B. 1
C. 2
D. 3
[单项选择]下列程序的输出结果是( )。 #include<iostream> using namespace std; template<typename T> T fun(T a,T b){return(a<=b)a:b;) int main( ) { cout<<fun(3,6)<<','<<fun(3.14F,6.28F)<<end1; return 0; }
A. 0,3.14
B. 3,3.14
C. 3,3
D. 3.14,3.14