首页 > 大学专科> 电子信息
题目内容 (请给出正确答案)
[主观题]

有以下程序: include<stdio.h> yoidfun(char*c) { while(*c) { if(*c>=aa&&*c<=z)*c=*c=*(

有以下程序: include<stdio.h> yoidfun(char*c) { while(*c) { if(*c>=aa&&*c<=z)*c=*c=*(*a-A); C++; } } yoidmain() { chars[81]; gets(s);fun(s);puts(s); } 当执行程序时从键盘上输入HelloBeijing<回车>,则程序的输出结果是

A.HELLOBEIJING

B.HelloBeijing

C.helloBeijing

D.hELLOBeijing

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“有以下程序: include<stdio.h> yoidfu…”相关的问题
第1题
以下程序运行后输出结果是【 】。 include <stdio, h> main() { int a,b,c; a=10; b:20

以下程序运行后输出结果是【 】。 include <stdio, h> main() { int a,b,c; a=10; b:20; c=(a%b<1) ‖ (a/b>1); printf("%d %d %d\n",a,b,c); }

点击查看答案
第2题
以下程序运行后的输出结果是【 】。 include <stdio, h> main() char c1 ,c2; for(e

以下程序运行后的输出结果是【 】。 include <stdio, h> main() char c1 ,c2; for(el = 0, c2 =9; e1<c2; c1 + + , c2 -- ) printf(" %c%c", c1, c2 ); printf("\n" ); }

点击查看答案
第3题
以下程序运行后的输出结果是【 】。 include <stdio, h> main () { char a [

以下程序运行后的输出结果是【 】。 include <stdio, h> main () { char a [ ] = "Language", b [ ]: "Programe"; char * pl, * p2; int k; p1=a;p2=b; for(k=0;k<=7;k++) if(* (p1 +k) == * (p2+k)) printf("% c", * (pi +k)); }

点击查看答案
第4题
以下程序运行后的输出结果是【 】。 include <stdio, h> include <string, h> main() { char

以下程序运行后的输出结果是【 】。 include <stdio, h> include <string, h> main() { char ch[] ="abc".,x[3] [4]: int i: for(i=0;i<3:i ++) strcpy(x[i] ,ch): for(i =0;i<3:i++) printf("% s" ,&x[i] [i]); printf(" \n" ) }

点击查看答案
第5题
以下程序运行后的输出结果是【 】。 include <stdio, h> main() { int a = 1,b =2,c =3;

以下程序运行后的输出结果是【 】。 include <stdio, h> main() { int a = 1,b =2,c =3; if(c = a) printf("% d \n" ,c); else printf("% d \n" ,b); }

点击查看答案
第6题
以下程序运行后的输出结果是【 】。 include <stdio, h> main() { int a

以下程序运行后的输出结果是【 】。 include <stdio, h> main() { int a=3,b=4,c=5,t=99; if(b<a && a<c) t=a;a=c;c=t; if(a<e && b<c) t=b;b=a;a=t; printf("%d %d %d \n" ,a,b,e); }

点击查看答案
第7题
以下程序运行后的输出结果是【 】。 include <stdio, h> include <stating, h> void fun(char

以下程序运行后的输出结果是【 】。 include <stdio, h> include <stating, h> void fun(char * s,int p,int k) { int i; for(i=p;i<k-1;i++) s[i] =s[i+2]; } main() { char s [] = "abedefg"; fun(s,3 ,strlen(s) ); puts(s); }

点击查看答案
第8题
以下程序运行后的输出结果是【 】 include <stdio, h> fun(int a) { int b = 0; static in

以下程序运行后的输出结果是【 】 include <stdio, h> 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 ++ ) prinff("% d% d" ,i,fun(a) ); printf(" \n" ); }

点击查看答案
第9题
以下程序运行后输出结果是【 】。 include <stdio, h> void swap(int x.int y) { int t; t

以下程序运行后输出结果是【 】。 include <stdio, h> void swap(int x.int y) { int t; t = x;x = y;y = t: printf("% d % d ",x,y); } main () { iht a=3,b=4: swap(a,b); prinff("% d % d" ,a,b); }

点击查看答案
第10题
有下面的程序: include <stdio, h> main () { enum team {my,your=4,his,her=his+10};

有下面的程序: include <stdio, h> main () { enum team {my,your=4,his,her=his+10}; prinff(" % d %d %d %d \n" ,my,your,his,her); 此程序的输出结果是【 】。 A) 0 1 2 3 B) 0 4 0 1 0 C) 0 4 5 1 5 D) 1 4 5 1 5

点击查看答案
第11题
以下程序从终端读入数据到数组中,统计其中正数的个数,并计算它们之和,请填空。 include <s
tdio, h> main() int i, a [20], sum, count; sum = count = 0 ; for(i=0;i<20;i++)scanf("%d",【 】); for(i=0;i<20;i ++) {if(a[i] >0) { count + +; sum+ = 【 】; } prinff("sum = % d, count = % d \ n", sum, count ); }

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