单项选择题
下列程序执行后的输出结果是( )。
void funcl(int i);
void func2(int i);
char st[]="hello,friend!";
void funcl(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);
main()
int i=0;funcl(i);printf("\n"); )
A.hlm
B.hlo
C.hello
D.he1
热门
试题
单项选择题
若有如下程序: sub(int *t,int a[3][4]) int m,n; for(m=0;m<3;m++) for(n=0;n<4;n++) *t=a[m][n];t++; main() int*t,s[3][4)=1,2,3),4,5,6),7,8,9; t=(int*)malloc(50); sub(t,s); printf( %d,%d n ,t[4],t[7]); 则程序运行后的输出结果是( )。
A.4,7
B.4,0
C.5,8
D.程序错误