#include<stdio.h>
void fun(char*c)
{while(*C)
{if(*c>=‘a’&&*c<=‘z’) *c=*c一(‘a’一‘A’);
C.++;
}
}
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 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,AB.b,B,B,AC.a,B,B,aD.a,B,a,B
[单选题]有以下程序#include <stdio.h>void fun(char *t,char *s){ while(*t!=0) t++;while((*t++=*s++)!=0);}main(){ char ss[10]="acc",aa[10]="bbxxyy";fun(ss,aa); printf("%s,%s/n",ss,aa);}程序的运行结果是A.accxyy,bbxxyyB.acc,bbxxyyC.accxxyy,bbxxyyD.accbbxxyy,bbxxyy
[单选题]有以下程序#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*bB.) a*bC.) a*b****D.) ab
[单选题]有以下程序#include <stdio.h>void fun( char. c){ if(c>'x') fun( c-1);printf("%c",c);}main( ){ fun(’z’); }程序运行后的输出结果是A.) xyzB.) wxyzC.) zyxwD.)zyx
[单选题]有以下程序#include <stdio.h>void fun(char **p){ ++p; printf("%s/n",*p);}main(){ char *a[]={"Morning","Afternoon","Evening","Night"};fun(a);}程序的运行结果是A. ) AfternoonB. ) fternoonC. ) MorningD. ) orning
[单选题](29)有以下程序include <stdio.h>void fun(char *c){ while(*c){ if(*c>='a'&&(29)有以下程序#include <stdio.h>void fun(char *c){ while(*c){ if(*c>='a'&&*c<='z') *c=*c-('a'-'A');c++;}}main(){ char s[81];gets(s); fun(s);
[单选题]有以下程序#include <stdio.h>void fun(char **p){ p=p+2; printf("%s/n",*p);}main(){ char *a[]={"Morning","Afternoon","Evening","Night"}; fun(a);}程序的运行结果是A.rningB.afternoonC.ternoon D.Evening
[单选题](25)有以下程序#include<stdio.h>void fun(char *s){while(*s){ if(*s%2==0) printf(“%c”,*s);s++;}}main(){ char a[]={“good”};fun(a);printf(“/n”);}注意:字母a的ASCII码值为97,程序运行后的输出结果是A.)d B)go C)god D)good
[单选题]有以下程序include<stdio.h>void fun(int x){if(x/2>1)fun(x/2);printf("%d",x);}main{fun(7);printf("/n");}程序运行后的输出结果是( )。A.1 3 7B.7 3 1C.7 3D.3 7
[单选题]有以下程序#include <stdio.h>void fun(int *a,int n)/*fun函数的功能是将a所指数组元素从大到小排序*/{ int t,i,j;for(i=0;i<n-1;j++)for(j=i+1;j<n;j++)if(a[i]<a[j]) { t=a[i];a[i]=a[j];a[j]=t;}}main(){ int c[10]={1,2,3,4,5,6,7,8,9,0},i;fun(c+4,6);for(i=0;i<10;i++)