下面程序的运行结果是()。include void main(){static int a[][4]={ 1,2,3,4,5,6,7, 下面程序的运行结果是( )。#include <iostream.h>void main(){static int a[][4]={ 1,2,3,4,5,6,7,8,9,10,11,12};int i, j, sum=0;for(i=0;i<3;i++)for(j=0;j<4;j++)if(j>i)sum+=a[i][j];cout<<sum<<end1;}A.24B.30C.36D.40

下面程序的运行结果是()。include void main(){static int a[][4]={ 1,2,3,4,5,6,7,

下面程序的运行结果是( )。#include <iostream.h>void main(){static int a[][4]={ 1,2,3,4,5,6,7,8,9,10,11,12};int i, j, sum=0;for(i=0;i<3;i++)for(j=0;j<4;j++)if(j>i)sum+=a[i][j];cout<<sum<<end1;}

A.24

B.30

C.36

D.40


相关考题:

下面程序的输出结果是【】。define MIN(a,b) (((a)void main(){int 下面程序的输出结果是【 】。define MIN(a,b) (((a)<(b))?a:b)include <iostream.h>void main(){int x= 3, y=5;cout<< MIN(x,y)<<end1;}

阅读下面程序: 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);}则该程序的输出结果是______。

以下程序的执行结果是______ includevoid func(int); void main(){ int k=4 func(k) 以下程序的执行结果是______include<iostream.h>void func(int);void main(){int k=4func(k) ;func(k) :cout<<end1;}void func(int a){static int m=0;m+=a;cout<<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),}则该程序的输出结果是【 】

下面程序的运行结果是 include Void main( ) { int num=1; int ref=num;ref= 下面程序的运行结果是#include<iostream.h>Void main( ){int num=1;int ref=num;ref=ref+2;cout < < num;num=num+3;cout < < ref < <endl;}A.13B.16C.36D.33

下面程序的运行结果是 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

下面程序的运行结果是 include int fun(int a[ ] ,int n) { int result=1; for(in 下面程序的运行结果是#include<iostream.h>int fun(int a[ ] ,int n){int result=1;for(int i=1;i<n;i++)result=result * a[i] ;retum result;}void main( ){int a[3] ={3,4,5};coutA.12B.15C.20D.60

下面程序的运行结果是 include void main( ) { int i=1; while(i 下面程序的运行结果是#include<iostream.h>void main( ){int i=1;while(i <=8)if(++i%3!=2) continue;else cout < < i;}A.25B.36C.258D.369

以下程序的输出结果是【】。 include void main( ) } int a=0; a+=(a=8); cout 以下程序的输出结果是【 】。include<iostream.h>void main( )}int a=0;a+=(a=8) ;cout<<a;}

阅读下列程序: 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<<endl;}}void main()int m(1);fun(m);}则该程序的输出结果是______。

阅读下面程序:include int fun( int a, int b ){int c;c=a*b;return c;}void main() 阅读下面程序:include <iostream.h>int fun( int a, int b ){int c;c=a*b;return c;}void main(){int a=3,b=5,c=4,x=0;x=fun(fun(a, b),c);cout<<x<<end1;}其运行结果是【 】。

下面程序的运行结果是()。includevoid main(){int i=1;while(i 下面程序的运行结果是( )。 #include<iostream.h> void main() { int i=1; while(i<=8) if(++i%3!=2)continue; else cout<<i; }A.25B.36C.258D.369

下面程序的运行结果是______。 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 fun( ) {static int a=0; a+=2;cout 以下程序的输出结果是_____。include<iostream.h>void fun( ){ static int a=0;a+=2;cout < < a < < " ";}void main( ){ int cc;for(cc=1;cc<4;cc++)fun( ) ;cout < < endl;}

以下程序输出的结果是_____。 include void main( ) { int a=5,b=4,c=3,d; d=(a>b>c 以下程序输出的结果是_____。include<iostream.h>void main( ){int a=5,b=4,c=3,d;d=(a>b>c) ;cout < < d;}

下面程序的运行结果是 ______。 include void main() { char str[]="SSSWLIA",c; int 下面程序的运行结果是 ______。include<iostream.h>void main(){char str[]="SSSWLIA",c;int k;for(k=2;(c=str[k]!='\0';k++){switch(c){case'I':++k;break;case'l';continue;default;c

下面程序执行的结果是【 】 include using namespace std; class A{ public: static in 下面程序执行的结果是【 】include<iostream>using namespace std;class A{public:static int x;A(inty){cout<<x+y;}};int A::x=2;void main(){A a(5);}

下面程序的运行结果为 include void main( ) { for(int a =0,x=0;!xa 下面程序的运行结果为#include<iostream.h>void main( ){for(int a =0,x=0;!xa<=10;a++){a++;}cout < < a < < endl;}A.10B.11C.12D.0

如下程序的执行结果是 include void main( ) { static int a[ ]={ 1,7,3,9,5,11 如下程序的执行结果是 #include<iostream.h> void main( ) { static int a[ ]={ 1,7,3,9,5,11 }; int * p=a; * (p+3)+=4; cout < < * p < <"," < < * (p+3);}A.1,13B.1,16C.3,13D.1,14

下面程序的运行结果为include class A{ static int n;public:A( ){n=1;}A(int nu 下面程序的运行结果为 #include < iostream.h > class A { static int n; public: A( ){n=1;} A(int num){ n = num;} void print( ){cout<< n;} }; int A::n=2; void main( ) { A a,b (3); a.print( ); b.print( ); cout<< end1; }A.11B.13C.23D.33

下面程序的输出结果是【】。 include int d=1; int fun(int p){ static int d=5; d+=p; 下面程序的输出结果是【 】。include<iostream.h>int d=1;int fun(int p){static int d=5;d+=p;cout<<d<<" ";return d;}void main(){int a:3;cout<<fun(a+fun(D) )<<end1;}

以下程序的输出的结果是()。include int x=3;void main(){void incre();int i;for ( 以下程序的输出的结果是( )。#include <iostream.h>int x=3;void main(){ void incre(); int i; for (i=1;i<x;i++) incre();}Void incre(){ static int x=1; x*=x+1; cout<<x<<"";}A.3 3B.2 2C.2 6D.2 5

下列程序的运行结果是()。 include void fun(int a,int b=3) { static int i=2 下列程序的运行结果是( )。 #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<<endA.5,2B.7,11C.11,23D.9,23

下面程序的运行结果是include int fun ( int a[ ],int n){int result=1;for(int 下面程序的运行结果是 #include < iostream.h > int fun ( int a[ ],int n) { int result=1; for(int i=1;i<n;i++) result=result*a[i]; return result; } void main( ) { int a[3]={3,4,5}; cout << fun(a,A.12B.15C.20D.60

分析下面程序,该程序的运行结果是()。includeclass cmm{public:static int m;cmm(){ 分析下面程序,该程序的运行结果是( )。 #include<iostream.h> class cmm { public: static int m; cmm() { m++; } cmm(int n) { m=n; } static void testm() { m++; } }; int cmm :: m=0; void main() { cmm A; cmm B(3); A.testm(); cram :: testm0; cout<<"m="<<B.m<<endl; }A.m=3B.m=4C.m=5D.m=6

下面程序的输出结果是______。include void main() { inta[6]={1,2,3,4,5,6}; for(in 下面程序的输出结果是______。include<iostream.h>void main(){inta[6]={1,2,3,4,5,6};for(int i=0;i<5;i++)cout<<a[i]<<““;cout<<endl;