题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-12-02 18:09:59

[单选题]有以下程序 #include <stdio.h> int w=3; void main() { int w=10; printf("%d\n",fun(5)*w); } fun(int k) { if(k==0) return(w); return(fun(k-1)*k); } 执行后的输出结果是( )。
A.360
B.3600
C.1080
D.2100

更多"[单选题]有以下程序 #include &lt;stdio.h> in"的相关试题:

[单选题]有以下程序 #include void fun(int *p) {printf(“%d\n”,p[5]);} main() {int a[10]={1,2,3,4,5,6,7,8,9,10}; fun(&a[3]); 程序运行后的输出结果是()。
A.5
B.6
C.8
D.9
[单选题]有以下程序 #include void fun(int *s) { static int j=0; do { s[j]+=s[j+1]; }while(++j<2); } void main() { int k,a[10]={1,2,3,4,5}; for(k=1;k<3;k++) fun(a); for(k=0;k<5;k++) printf("%d",a[k]); } 执行后的输出结果是( )。
A.35756
B.23445
C.35745
D.12345
[单选题]有以下程序 #include void main() { int j,a[]={1,3,5,7,9,11,13,15},*p=a+5; for(j=3;j;j--) { switch(j) { case 1: case 2:printf("%d",*p++); case 3:printf("%d",*(--p)); } } } 执行后的输出结果是( )。
A.9911
B.79911
C.99999
D.991113
[单选题]有以下程序 #include void fun(int *x,int i) {*x=*(x+i);} void main() { int a[8]={1, 2, 3, 4, 5, 6, 7, 8},i; fun(a,2); for(i=0; i<8/2; i++) { printf("%d",a[i]);} printf("\n"); } 执行后的输出结果是( )。
A.3234
B.3231
C.2334
D.2331
[单选题]有以下程序 #include void ive(x,n) int x[],n; { int t,*p; p=x+n-1; while(x
A.1 2 3 4 5 6 7 8 9 0
B.0 9 8 7 6 5 4 3 2 1
C.1 3 5 7 9 2 4 6 8 0
D.0 8 6 4 2 9 7 5 3 1
[单选题]如下程序的执行结果是(  )
#include
Void main( )
{ int i,sum=0
For(i=1;i<=3;sum++) sum+=i;
Printf("%d\n",sum);
}
A.6
B. 3
C. 死循环
D. 0
[单选题]下面程序的运行结果是(  )
#include
Void main( )
{ int
A,b;
A=-1;
B=0;
Do {
++a;
++a;
B+=a;
} while(a<9);
Printf("%d\n",B.;
}
A. 34
B. 24
C. 26
D. 25
[单选题]有以下程序 #include "stdio.h" void main() { int x=0x02ff,y=0x0ff00; printf("%d\n",(x&y)>>4|0x005f); } 执行后的输出结果是( )。
A.127
B.255
C.128
D.1
[单选题]有以下程序   #include   void main()   { int s;   scanf("%d",&s);   while(s>0)   { switch(s)   { case 1:printf("%d",s+5);   case 2:printf("%d",s+4); break;   case 3:printf("%d",s+3);   default:printf("%d",s+1);break;   }   scanf("%d",&s);   }   }   运行时,若输入1 2 3 4 5 0<回车>,则输出结果是( )。
A.6566456
B.66656
C.66666
D.6666656
[单选题]有以下程序   #include   void fun(char *c)   { while(*c)   { if(*c>='a'&&*c<='z') *c=*c-('a'-'A');   c++;   }   }   void main()   { char s[81];   gets(s); fun(s); puts(s):   }   当执行程序时从键盘上输入Hello Beijing<回车>,则程序的输出结果是( )。
A.hello beijing
B. Hello Beijing
C.HELLO BEIJING
D. hELLO Beijing
[单选题]有以下程序 #include "stdio.h" void main() { int a=1; char c='a'; float f=2.0; printf("%d\n",(!(a==0),f!=0&&c=='A')); } 执行后的输出结果是( )。
A.3
B.2
C.1
D.0
[单选题]有以下程序 #include "stdio.h" void main() { int c; while((c=getchar())!='\n') switch(c -'2') { case 0: case 1: putchar(c+4); case 2: putchar(c+4);break; case 3: putchar(c+3); default: putchar(c+2);break; } printf("\n"); } 通过键盘输入446755,执行后的输出结果是( )。
A.888988
B.668966
C.88898787
D.66898787

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码