下列程序执行后的输出结果是 voidfunc1(inti); voidfunc2(inti); charst[]="hello frie

计算机 程序, 已帮助 人

下列程序执行后的输出结果是

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);}}

main()

{ int i=0; func1(i); printf("\n");}

A.hello

B.hel

C.hlo

D.hlm

请帮忙给出正确答案和分析,谢谢!

热搜:下面程序的功能是输出数组s中最大元素