单项选择题
请选出以下程序的输出结果
#include<stdio.h>
main()
int a[]=1,2,3,4,i;
int x=0;
for(i=0;i<4;i++)
sub(a,x);printf("%d",x);
printf("\n");
sub(s,y)
int*s,y;
static int t=3;
y=s[t];t--;
A.1 2 3 4
B.4 3 2 1
C.0000
D.4444
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
下列程序执行后的输出结果是 void func1(int i); void func2(int i); char st[]= hello,friend!”; void func1(int i) printf( %c ,st[i]); if(i<3)i+=2;func2(i); void func2(int i) printf( %c ,st[i]); if(i<3)i+=2;func1(i); int i=0;func1(i);printf( n );
A.hello
B.hel
C.hlo
D.hlm
点击查看答案&解析
单项选择题
下面程序的运行结果是 include<stdio.h> main() int a=28,b; char s[10],*p; p=s; dob=a%16; if(b<10) *p=b+48; else*p=b+55; p++; a=a 5; while(a>0); *p=’ 0’; puts(s);
A.10
B.C2
C.C51
D.\0
点击查看答案&解析
相关试题
如下程序的输出结果是 #include<stdio....
以下程序的输出结果是 #include<stdio....