若运行时给变量x输入12,则以下程序的运行结果是include void main(){ int x,y; cin 若运行时给变量x输入12,则以下程序的运行结果是 #include <iostream.h> void main() { int x,y; cin>>x; y=x>12? x+10:x-12; cout<<y; cout<<endl; }A.0B.22C.12D.10
若运行时给变量x输入12,则以下程序的运行结果是include void main(){ int x,y; cin
若运行时给变量x输入12,则以下程序的运行结果是 #include <iostream.h> void main() { int x,y; cin>>x; y=x>12? x+10:x-12; cout<<y; cout<<endl; }
A.0
B.22
C.12
D.10
相关考题:
阅读下面程序: include void fun(int n) { int x(5); static int y(10); if(n>0) { 阅读下面程序:include<iostream.h>void fun(int n){int x(5);static int y(10);if(n>0){++x;++y;cout<<x<<","<<y<<end1;}}void main(){int m(1);fun(m);}则该程序的输出结果是______。
阅读下面程序: include void f(int n) { int x(5); static int y(10); if(n>0) { ++ 阅读下面程序:include<iostream.h>void f(int n){int x(5);static int y(10);if(n>0){++x;++y;cout<<x<<","<<y<<endl;}}void main(){int m(1);f(m),}则该程序的输出结果是【 】
下面程序的运行结果是includevoid fun(int * a,int * b){ int x= * a; * a = * b;* 下面程序的运行结果是 #include<iostream.h> void fun(int * a,int * b) { int x= * a; * a = * b; * b=x; cout <<*a<< *b<<""; } void main( 0 { int x =1,y =2; fun(x,y); cout<< x << y <<end1; }A.12 12B.12 21C.21 12D.21 21
下面程序的运行结果是 include void fun(int * a,int * b) { int x= * a; * a= * 下面程序的运行结果是#include<iostream.h>void fun(int * a,int * b){int x= * a;* a= * b; * b=X;cout < < * a < < * b < <" ";}void main( ){int x=1,y=2;fun(x,y) ;cout < < X < < y < < endl;}A.12 12B.12 21C.21 12D.21 21
若运行时给变量x输入12,则以下程序的运行结果是main(){int x,y;scanf("%d",x);y=x12?x+10:x-12;printf("%d\n",y);}A.0B.22C.12D.10
阅读以下程序 include void main( ) { char line[10]; cin>>line; cout 阅读以下程序#include<iostream.h>void main( ){char line[10];cin>>line;cout<<line<<endl;}如运行时输入This is example.<CR>,则程序的输出结果是A.ThisB.This isC.This is aD.This is an example.
假如输入为30和60,下列程序运行的结果是【】。 include void main() { int a, b; cin>> 假如输入为30和60,下列程序运行的结果是【 】。include<iostream.h>void main() {int a, b;cin>>a>>b;if(a<b) {a=a+b;b=a-b;a=a-b;}cout<<a<<“,”<<b<<endl}
以下程序运行后的输出结果是【】。 include void fun(int x,int y) {x=x+y;y=x-y 以下程序运行后的输出结果是【 】。include<iostream.h>void fun(int x,int y){ x=x+y;y=x-y;x=x-y;cout<< x << "," <<y << " ,";}void main( ){ int x=2,y=3;fun(x,y);cout<< x << "," << y << endl;}
以下程序的执行结果是______。 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;}
以下程序的运行结果是()。includevoid sub(int x,int y,int*z){*Z=y-x;}void main() 以下程序的运行结果是( )。 #include<iostream.h> void sub(int x,int y,int*z) {*Z=y-x;} void main() {int a,b,c; sub(10,5,a); sub(7,a,b); sub(a,b,c); cout<<a<<“,”<<b<<“,”<<c<<endl;}A.5,2,3B.-5,-12,-7C.-5,-12,-17D.5,-2,-7
下面程序的运行结果是______。 include void fun(int a,int b=3) { static int 下面程序的运行结果是______。include<iostream.h>void fun(int a,int b=3){static int i=2;a=a+b+i;i=i+a;}void main(){int x=5,y=2;fun(x,y);cout<<x<<",";fun(x);cout<<x<<endl;}
下面程序的运行结果为_____。 include void fun(int x=0,int y=0) { cout 下面程序的运行结果为_____。include<iostream.h>void fun(int x=0,int y=0){cout < < x < < y;}void main( ){fun(5) ;}
以下程序的运行结果是include void sub(int x,int y,int *z){*z=y-x;}void main( ) 以下程序的运行结果是 #include<iostream.h> void sub(int x,int y,int *z) { *z=y-x;} void main( ) { int a,b,c; sub(10,5,a) ; sub(7,a,b) ; sub(a,b,c) ; cout << a <<","<< b <<"," << c << enA.5,2,3B.-5,-12,-7C.-5,-12,-17D.5,-2,-7
若运行时给变量x输入12,则以下程序的运行结果是 include void main( ) { int 若运行时给变量x输入12,则以下程序的运行结果是 #include<iostream.h> void main( ) { int x,y; cin > > x; y=x > 12? x+lO:x-12; cout < < y; cout < < end1; }A.0B.22C.12D.10
有以下程序:includeFloat fun(int x, int y){return(x+y) ;}void main( ){int a=2, 有以下程序: #include<iostream.h> Float fun(int x, int y) { return(x+y) ;} void main( ) { int a=2,b=5,c=8; cout < < fun((int) fun(a+c, b) ,a-c) ;} 程序运行后的输出结果是A.编译出错B.9C.21D.9.0
以下程序输出结果是 ______。includevoid fun(int x,int y,int z){z=x+y;}void main 以下程序输出结果是 ______。 #include<iostream.h> void fun(int x,int y,int z){z=x+y;} void main() { int a=10; fun (2,2,a); cout<<a; }A.0B.4C.10D.无定值
以下程序的执行结果是 ______。 include int max(int x,int y) { ret 以下程序的执行结果是 ______。include<iostream.h>int max(int x,int y){return(x>y? x:y);}void main(){int n=2,m=10;max(n,m)--;cout<<"n="<<n<<",m="<<m<<endl;}
若运行时给变量x输入12,则以下程序的运行结果是 【 】 ;main(){int x,y;scanf(""%d"",x);y=x>12?x+10:x-12;printf(""%d\n"",y);}
有以下程序main(){ int x,y; scanf("%d",x); y=x12?x+10:x-12; printf("%d\n",y);}若运行时给变量x输入12,则以下程序的运行结果是A.0 B.22C.12 D.10
若从键盘输入70,则以下程序输出的结果是【】。includevoid main(){int a; cin>>a;if(a> 若从键盘输入70,则以下程序输出的结果是【 】。include<iostream.h>void main(){int a; cin>>a;if(a>50) cout<<a;if(a>40) cout<<a;if(a>30) cout<<a;}
若运行时给变量x输入12,则以下程序的运行结果是 main() { int x,y; scanf("%d",x); y=x>12? x+10:x-12; printf("%d\n",y);}A.0B.22C.12D.10
若运行时给变量x输入12,则以下程序的运行结果是includevoid main(){int x,y;cin>>x 若运行时给变量x输入12,则以下程序的运行结果是 #include<iostream.h> void main() { int x,y; cin>>x; y=X>12?x+10:x-12; cout<<y; cout<<endl; }A.0B.22C.12D.10
下列程序运行后的输出结果是()。 include void fun(int,int,int*); void main() { i 下列程序运行后的输出结果是( )。 #include<iostream.h> void fun(int,int,int*); void main() { int x,y,z; fun(5,6,x); fun(7,x,y); fun(x,y,z); cout<<x<<","<<y<<","<<z<<end1; } void fun(int a,int b,int *c) { b+=a; *c=b-a; }A.5, 5, 5B.6, 6, 6C.5, 6, 7D.7, 7, 7
下列程序段的输出结果是 include void fun(int * X,int * y) {cout 下列程序段的输出结果是 #include<iostream.h> void fun(int * X,int * y) { cout < < * X < < * y; * X=3; * y=4; } void main( ) { int x=1,y=2; fun(y,x); cout < < X < < y < < end1; }A.2143B.1212C.1234D.2112
若运行时给变量x赋值12,则以下程序的运行结果是()。includemain(){int x,y; scanf("%d" 若运行时给变量x赋值12,则以下程序的运行结果是( )。 #include<stdio.h> main() { int x,y; scanf("%d",x); y=x>12? x+10:x-12; printf("%d\n",y); }A.0B.22C.12D.10
有以下程序 include floatfun(int x,int y) {return(x+y);}void main() {int a=2,b 有以下程序 #include<iostream.h> floatfun(int x,int y) {return(x+y);} void main() {int a=2,b=5,c=8; tout<<fun((int)fun(a+c,b),a-C);} 程序运行后的输出结果是A.编译出错B.9C.21D.9
若运行时给变量x输入12,则以下程序的运行结果是includevoid main( ){int x,y;cin>> 若运行时给变量x输入12,则以下程序的运行结果是 #include<iostream.h> void main( ) { int x,y; cin>>x; y=x>12? x+l0:x-12; cout<<y; cout<<endl; }A.0B.22C.12D.10