![](https://static.youtibao.com/asksite/comm/h5/images/m_q_title.png)
有以下程序()
A.#include
B.abcdef
C.ABCDEF
D.aBcDeF
E.AbCdEf
![](https://static.youtibao.com/asksite/comm/h5/images/m_q_a.png)
D、aBcDeF
![](https://static.youtibao.com/asksite/comm/h5/images/solist_ts.png)
A.#include
B.abcdef
C.ABCDEF
D.aBcDeF
E.AbCdEf
D、aBcDeF
A.6
B.8
C.12
D.10
有以下程序: #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
(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
有以下程序: #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
有以下程序
#include<stdio.h>
#include<string.h>
main()
{char x[]=“STRING”;
x[0]=0;x[1]=’\0’;x[2]=’0’;
printf(”%d%d\n”,sizeof(x),strlen(x));
}
程序运行后的输出结果是()。
A.6 1
B.7 0
C.6 3
D.7 1
有以下程序
#include<stdio.h>
void fun(int *s)
{ static int j=0;
do { s[j]=s[j]+s[j+1]; )while(j<2);
}
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]);
printf("\n");
}
程序运行后的输出结果是
A) 12345
B)23445
C)34756
D) 35745
有以下程序 include<stdio.h> main() { ints[12]={1,2,3,4,4,3,2,1,1,1,2,3),c[5]:{O},i; for(i=0;i<12;i++)c[s[i]]++; for(i=1;i<5;i++)printf(%d,c[i]); printf(\n); }
A.4332
B.2344
C.1234
D.1123
有以下程序 #include<stdio.h> main() {char cl,c2; c1=A+8-4 c2=A+8-5; printf("%C,%d\n",cl,c2); } 已知字母A的ASCIl码为65,程序运行后的输出结果是()。
A.E,69
B.D,69
C.E,D
D.输出无定值
有以下程序
#include<stdio.h>
int fun()
{static int x=1;
x+=1;return x;
}
main()
{int i,s=1;
for(i=1;i<=s;i++)s+=fun();
printf(”%d\n”,s);
}
程序运行后的输出结果是()。
A.11
B.21
C.6
D.120
有以下程序
#include<stdi0.h>
void fun(int n,int*p)
(int f1,f2;
if(n==1|| n==2)*p=1;
else
{ fun(n-1,&f1);fun(n-2,&f2);
*p=f1+f2;
}
}
main
{ int s;
fun(3,&s);printf("%d",s);
}
程序的运行结果是()。
A.2
B.3
C.4
D.5