首页 > 建筑工程类考试> bim建模师
题目内容 (请给出正确答案)
[单选题]

阅读程序回答问题:main(){int i,j,k,m=0;for(i=1;i<4;i++)for(j=1;j<4;j++)for(k=1;k<4;k++)m++;printf(“M=%d”,m);}以上程序输出M=()。

A.3

B.6

C.9

D.27

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
更多“阅读程序回答问题:main( ){int i,j,k,m=0…”相关的问题
第1题
阅读程序,写出运行结果。#include <iostream.h>int a=5;void fun(int b)static int a=10;a+=b++
阅读程序,写出运行结果。#include <iostream.h>int a=5;void fun(int b)static int a=10;a+=b++

阅读程序,写出运行结果。

#include <iostream.h>

int a=5;

void fun(int b)

static int a=10;

a+=b++;

cout<< a;

void main()

{

int c=20:

fun(c);

a+Fc++

cout<<a<<endl

}

点击查看答案
第2题
main函数的返回值类型是()

A.char

B.double

C.int

D.无返回类型

点击查看答案
第3题
给出下面代码的输出()public class Test {public static void main(String[ ] args) {int[][]

A.0

B.1

C.2

D.4

点击查看答案
第4题
以下程序的计算结果是()。class Test { public static void main(String[] args){int d=5;intc
以下程序的计算结果是()。class Test { public static void main(String[] args){int d=5;intc

以下程序的计算结果是()。

class Test { public static void main(String[] args){int d=5;int

c=2;float x=d/c;System.out.println("x="+x);} }

点击查看答案
第5题
public class sumof10{public static void main(String args[]){int I,sum;sum=0;I=1;do{sum+=

public class sumof10{public static void main(String args[]){int I,sum;sum=0;I=1;do{sum+=I; I++;}while (I<=10);System.out.println(“sum=”+sum);}

点击查看答案
第6题
有以下程序void f(int x,int y){ int t;if(x}main(){ int a=4,b=3,c=5;f(a,b); f(a,c); f(b,c);printf("%d,%d,%d/n",a,b,c);}执行后输出的结果是()。

A.3,4,5

B.5,3,4

C.5,4,3

D.4,3,5

点击查看答案
第7题
下面程序的输出结果是()。#define POWER(x) (x*x)main(){int i=4;printf("%d",POWER(i-2)); }

A.-9

B.-7

C.5

D.-6

点击查看答案
第8题
下列程序运行的结果为()。#includefun(int x,int y,int *cp,int *dp){*cp=x+y;*dp=x-y;}main(){int a,b,c,d ;a=30 ;b=50;fun(a,b,&c,&d);printf(“%d,%d/n”,c,d);}

A.50,30

B.30,50

C.80,-20

D.80,20

点击查看答案
第9题
写出以下程序的运行结果。#include int fun(int a){int b=0;static int c=3;b ; c ;return(a
写出以下程序的运行结果。#include int fun(int a){int b=0;static int c=3;b ; c ;return(a

写出以下程序的运行结果。

#include int fun(int a){int b=0;static int c=3;b ; c ;return(a b c);}

main(){int i, a=5;for (i=0; i<3; i )cout<< i<< " "<< fun(a)<< " ";}

点击查看答案
第10题
‏有以下程序‏#include‏void main()‏{int a,b,c=290;‏ a=(c/100)%9;‏ b=(-1)&&(-1);printf("%d,%d/n",a,b);}‏输出结果是()。

A.2,-1

B.3,1

C.2,0

D.2,1

点击查看答案
退出 登录/注册
发送账号至手机
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改