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

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

下面的程序的结果是

main( )

{int x=3,y=0, z=0;

if(x=y+z)cout<<"* * * *";

else cout<<"####";

}

A.有语法错误不能通过编译

B.输出****

C.可以通过编译,但是不能通过连接,因而不能运行

D.输出####


参考答案

更多 “ 下面的程序的结果是main( ){int x=3,y=0, z=0;if(x=y+z)cout<<"* * * *";else cout<<"####";}A.有语法错误不能通过编译B.输出****C.可以通过编译,但是不能通过连接,因而不能运行D.输出#### ” 相关考题
考题 以下程序的执行结果是______。 include void main() { int x=5 y=2; cout 以下程序的执行结果是______。include<iostream.h>void main(){int x=5 y=2;cout<<! (y==x/2)<<",";cout<<(y!=x%3)<<",";cout<<(x>0 y<0=<<",";cout<<(x!=y||x>=y)<<endl;}

考题 下面程序的结果【】。 include int f(int); void main() { int x=1,i; for (i=0; i 下面程序的结果【 】。include<iostream.h>int f(int);void main() {int x=1, i;for (i=0; i<3; i++)cout<<f(x)<<‘ ’ ;cout<<end1;}int f(int x){int y=1;static int z=3y++;z++;return (x+y+z);}

考题 有以下程序段,其输出的结果是______。int x,y,z;X=y=z=0;++x‖++y ++z;cout<<x<<","<<y<<","<<z<<endl;

考题 下面的程序的结果是 main() {int x=3,y=0,z=0; if(x=y+z)cout<<"* * * *"; else cout<<"# # # #"; }A.有语法错误不能通过编译B.输出* * * *C.可以通过编译,但是不能通过连接,因而不能运行D.输出# # # #

考题 有以下程序:includevoid main(){ int x=5,y=2; cout 有以下程序: #include<iostream.h> void main() { int x=5,y=2; cout<<!(y==x/2)<<","; cout<<y!=x%3)<<","; cout<<(x>0y<0)<<","; cout<<(x!=y‖x>=y)<<endl: } 程序执行后的输出结果是( )A.0,0,0,1B.1,1,1 1C.0,0, 1,1D.1,1,0,0

考题 若有以下程序段;includeusing namespace std;int main(){ int a[]={1,4,5}; int *p=a[0],x=6,y,z; for(y=0;y<3;y++) z=((*(p+y)<x) ? *(p+y):x); cout<<z<<end1; return 0; } 程序运行后的输出结果是( )。A.1B.4C.5D.2

考题 对于下面的程序,说法正确的是 include void main( ) {int x=3,y=4,z=2; i 对于下面的程序,说法正确的是 #include<iostream.h> void main( ) { int x=3,y=4,z=2; if(X=y+z) cout <<"x=y+Z"; else cout<<"x!=y+Z";}A.不能通过编译B.输出6C.输出x! =y+zD.输出x=y+z

考题 以下程序输出的结果是()。includeusing namespace std;int main(){int **x,*y,z=10;y= 以下程序输出的结果是( )。 #include<iostream> using namespace std; int main() { int **x,*y,z=10; y=z; x=y; cout<< **x+1<<endl; return 0; }A.11B.x的地址C.y的地址D.运行错误

考题 运行程序,程序输出结果是(). void sub (int *s, int *y ) { static int t=3 ; *y=s[t] ; t - -; } int main() { int a[ ]={1,2,3,4}, i , x=0; for (i = 0; i<4; i++) { sub (a,x ) ; cout<<x;} cout<<endl; return 0 ; }A.4321B.1234C.0000D.4444