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

题目内容 (请给出正确答案)
单选题
下列程序执行的结果为() x=-62 PrintSgn(x)+Abs(x)+Int(x)
A

-36

B

1

C

-1

D

-72


参考答案

参考解析
解析: 暂无解析
更多 “单选题下列程序执行的结果为() x=-62 PrintSgn(x)+Abs(x)+Int(x)A -36B 1C -1D -72” 相关考题
考题 阅读下面程序,则程序的执行结果为 【10】 。#include "stdio.h"main(){ int a=10;fun(a);printf( "%d\n",a);}fun(int x){ x=50;}

考题 下列程序的执行结果是()。includeclass Sample{int x,y;public:Sample(){x=y=0;)Sam 下列程序的执行结果是( )。 #include<iostream.h> class Sample { int x,y; public: Sample(){x=y=0;) Sample(int a,int b){x=a;y=b;} ~Sample() { if=(x==y) cout<<“x=y”<<endl; else cout<<“x!=y”<<endl; } void disp() { coutA.x=2,y=2B.x=3,y=3C.x=2,y=3D.x=3,y=2

考题 阅读下面程序,则程序的执行结果为( )。 include"stdio.h" main() {int a=10; fun(A); printf("%d\n",A);} fun(int x) {x=50;}

考题 以下程序执行后的输出结果是( )。include usingnamespacestd;void try(int,int,int,in 以下程序执行后的输出结果是( )。 #include <iostream> using namespace std; void try(int,int,int,int); int main ( ) { int x,y,z,r; x=1; y=2; try(x,y,z,r); cout<<r<<end1; return 0; } void try(int x,int y, int z,int r) { z = x+y; x = X*X; y = y*y; r = z+x+y; }A.18B.9C.10D.不确定

考题 有以下程序void f( int y, int *x){ y=y+*x; *X=*X+y; }main(){ int x=2,y=4;f(y,x);printf("%d %d\n",x,y);}执行后输出结果是______。

考题 以下程序段的执行结果为【】。includedefine PLUS(x, y) x+ yvoid main() { int x=1, y 以下程序段的执行结果为【 】。include<iostream.h>define PLUS(x, y) x+ yvoid main(){int x=1, y=2,z=3,sum;sum=PLUS(x+ y, z)*PLUS(y, z);cout<<"SUM="<<sum;cout<<end1;}

考题 以下程序的执行结果是______。 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 x, int y){return x,y; } double f (d 分析以下程序执行结果【 】。include<iostream.h>int f (int x, int y){return x,y;}double f (double x, double y) {return x,y;}void main() {int a=4, b=6;double c=2.6, d=7.4;cout<<f (a, b) <<","<<f (c, d) <<end1;}

考题 为使该程序执行结果为10,那么应该在程序划线处填入的语句是()。includeusing namespac 为使该程序执行结果为10,那么应该在程序划线处填入的语句是( )。 #include<iostream> using namespace std; class MyClass { public: MyClass (int a) { x=a; } ___________ //取x值 private: int x; }; int main() { MyClass my(10); cout<<my.GetNum()<<end1; return 0; }A.return x;B.int GetNum(){ return x;}C.intreturn x;D.void GetNum(){return x;}

考题 下列程序的输出结果是()。 include int fun(int x) {int a; if(x==0‖x==1) return 3; 下列程序的输出结果是( )。#include<stdio.h>int fun(int x){ int a;if(x==0‖x==1)return 3;elsea=x-fun(x-2) ;return a;}void main(){ printf("%d",fun(7) );}A.2B.8C.9D.5

考题 下列程序段执行后的输出结果为 int x=3; int y=10; System.out. println(y %x) ;A.0B.1C.2D.3

考题 下面程序的输出结果为()。ineludevoid main(){int x;int y=x;//变量引用y=99;c 下面程序的输出结果为( )。 #inelude<iostream.h> void main() { int x; int y=x;//变量引用 y=99; cout<<"x="<<x<<end1; }A.x=99B.x=9C.x=0D.异常

考题 以下程序的执行结果是______。 include class A{ int a: public: void seta(int x) { 以下程序的执行结果是______。include<iostream.h>class A{int a:public:void seta(int x) {a=x;}void showa() {cout<<a<<end1;}};class B{int b;public:void setb(int x) {b=x;}void showb(){cout<<b<<end1;}};

考题 执行下列程序 int fun(int x1,int x2){ int x; x1>x2 ?(x=3):(x=4); return x+x1; } void main(){ cout<<fun(7,8); } 后输出结果是 ______。A.9B.10C.11D.12

考题 有下列程序: int fun(int n) { if(n==1)}return 1; else return(n+fun(n-1)); } main { int x; scanf("%d",&x);x=fun(x);printf("%d\n",x); ) 执行程序时,给变量x输入10,程序的输出结果是( )。A.55B.54C.65D.45

考题 下列程序的输出结果为()。includevoid main(){int x;int y=x;//变量引用y=99; 下列程序的输出结果为( )。 #include<iostream.h> void main() { int x; int y=x;//变量引用 y=99; cout<<"x="<<x<<end1; }A.x=99B.x=9C.x=0D.异常

考题 以下程序的执行结果是 ______。 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;}

考题 下列程序的运行结果是()。includeint x=5;int fun(int A) {int C;C=X*a;return C;}v 下列程序的运行结果是( )。 #include<iostream.h> int x=5; int fun(int A) { int C; C=X*a; return C; } void main() { int x=3,a=4; x=x+fun(a); cout<<"x="<<x<<endl; }A.x=15B.x=17C.x=23D.x=25

考题 下列程序的输出结果为【 】。ineludeint max(int x, int y){return (x 下列程序的输出结果为【 】。inelude<iostream. h>int max(int x, int y){return (x>y? x: y); }void main() {int n=3, m=12;max(m, n)++cout<<"m="<<m<<", n= "<<n<<end1;}

考题 下述程序段的执行结果是()。includeVoid main(){int x; for(x=1;x 下述程序段的执行结果是( )。 #include <stdio.h> Void main() { int x; for(x=1;x<=100;x++) if(++x%3==0) if(++x%4==0) if(++x%7==0) printf("%d",x); }A.75B.76C.77D.84

考题 以下程序执行后的输出结果是include using namespace std;void try(int,int,int,int) 以下程序执行后的输出结果是 #include <iostream> using namespace std; void try(int,int,int,int); int main () { int x,y,z,r; x =1 ; y = 2; try(x,y,z,r); cout<<r<<endl; return 0; } void try(int x,int y,int z,int r) { z = x+y; x = x*x; y = y*y; r = z+x+y; }A.18B.9C.10D.不确定

考题 下列程序的执行结果是______。 X=-6^2 Print Sgn(x)+Abs(x)+Int(x)A.-36B.1C.-1D.-72

考题 执行以下程序后的输出结果为( )。includeclass Sample{int x, y;public:Sample() { 执行以下程序后的输出结果为( )。#include<iostream. b>class Sample{ int x, y; public: Sample() { x=y=0;} Sample(int a, int b) {x=a; y=b; } void disp () { cout<<"x="<<x<<"y="<<y<<end1; }};void main(){ Sample s(2,3), *p=s; p->disp();}A.x=1, y=3B.x=2, y=4C.x=3, y=2D.x=2, y=3

考题 执行下列程序后的输出结果是( ) int fun(int x1,int x2) { int x;x1x2?(x=3):(x=4);return(x+x1); } main() { printf("%d\n",fun( 7,8));}A.9B.10C.11D.12

考题 执行下列程序的输出结果是()。  #include   main( )  {   int x=10;      do{   x--;      }while(--x);  printf(“%d/n”,x--);  } 

考题 下列程序执行的结果为() x=-62 PrintSgn(x)+Abs(x)+Int(x)A、-36B、1C、-1D、-72

考题 填空题执行下列程序的输出结果是()。  #include   main( )  {   int x=10;      do{   x--;      }while(--x);  printf(“%d/n”,x--);  }