首页 > 计算机类考试
题目内容 (请给出正确答案)
[单选题]

有以下程序()

A.#include

B.5

C.24

D.32

E.40

答案
收藏

C、24

如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“有以下程序()”相关的问题
第1题
有以下程序()

A.#include

B.abcdef

C.ABCDEF

D.aBcDeF

E.AbCdEf

点击查看答案
第2题
有以下程序()

A.#include

B.02356

C.0235

D.235

E.2356

点击查看答案
第3题
有以下程序 #include <stdio.h> int fun(int a, int b) { if(b==0) return a;

有以下程序 #include <stdio.h> int fun(int a, int b) { if(b==0) return a; else return(fun(-a,-b)); } main() { printf("%d\n",fun(4,2)); } 程序的运行结果是______。

A.1

B.2

C.3

D.4

点击查看答案
第4题
有以下程序#include "stdio.h"main(){ struct date {int year,month,day;}today; printf("%d\n",sizeof(struct date));}程序的运行结果是

A.6

B.8

C.12

D.10

点击查看答案
第5题
有以下程序:#include<stdio.h>void fun(char *a,char*B){while(*a=='*')a++;while(*b=*A){b++;a+

有以下程序: #include<stdio.h> void fun(char *a,char*B){while(*a=='*')a++; while(*b=*A){b++;a++;} } main() {char*s="****a*b****",t[80]; fun(s,t);puts(t); } 程序的运行结果是()。

A.*****a*b

B.a*b

C.a*b****

D.ab

点击查看答案
第6题
有以下程序 #include<stdio.h> main() {int y=9; for(;y>0;y--) if(y%3==0)printf("%d",--y); } 程序的运行结粜是()。

A.741

B.963

C.852

D.875421

点击查看答案
第7题
(21 )有以下程序# include (stdio.h >main (){ int a = l ; b = 2 ;for (; a < 8 ; a++ ) { b

(21 )有以下程序

# include (stdio.h >

main ()

{ int a = l ; b = 2 ;

for (; a < 8 ; a++ ) { b+=a ; a+=2 ; }

printf (" %d , %d \ n ", a , b ) ;

}

程序运行后的输出结果是

A ) 9 , 18

B ) 8 , 11

C ) 7 , 11

D ) 10 , 14

点击查看答案
第8题
有以下程序: #include < stdio. h > main () int a=3,b=4,c=5,d=2;if(a>b) if(b>c)printf("%d",

有以下程序: #include < stdio. h > main () int a=3,b=4,c=5,d=2; if(a>b) if(b>c)printf("%d",d++ +1); else printf("% d", + + d + 1 ); printf("% d \n" ,d); 程序运行后的输出结果是()。

A.2

B.3

C.43

D.44

点击查看答案
第9题
有以下程序 #include<stdio.h>struct ord {int x,y;} dt[2]={1,2,3,4};main(){ struct ord

有以下程序

#include<stdio.h>

struct ord

{int x,y;} dt[2]={1,2,3,4};

main()

{

struct ord*p=dt;

printf(“%d,”,++(p一>x));printf(“%d\n”,++(p一>y));

}

程序运行后的输出结果是

A.1,2

B.4,1

C.3,4

D.2.3

点击查看答案
第10题
有以下程序: #include<stdio.h> void fun(char*C,int d) {*c=*c+1,d=d+1; printf(%"c

有以下程序: #include<stdio.h> void fun(char*C,int d) {*c=*c+1,d=d+1; printf(%"c%,c",*c,d); } main() {char b=aa=A; fun(&b,a);printf(%"c,%c\n",b,a); ) 程序运行后的输出结果是()。

A.b,B,b,A

B.b,B,B,A

C.a,B,B,a

D.a,B,a,B

点击查看答案
第11题
有以下程序 include<stdio.h> yoidfun(inta,intb) {mtt; t=a;a=b;b=t; } main() {int

有以下程序 include<stdio.h> yoidfun(inta,intb) {mtt; t=a;a=b;b=t; } main() {intc[10]={1,2,3,4,5,6,7,8,9,O),i; for(i=0;i<10;i+=2) fun(c[i],c[i+1]); for(i=0;i<10;i++) printff%d,,c[i]); printf(\n); } 程序的运行结果是

A.2,1,4,3,6,5,8,7,0,9,

B.0,9,8,7,6,5,4,3,2,1,

C.1,2,3,4,5,6,7,8,9,0,

D.0,1,2,3,4,5,6,7,8,9

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