网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

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

void funcl(int i);

void func2(int i);

char st[]="hello,friend!";

void fund(int i)

{ cout<<st[i];

if(i<3){i+=2;func2(i);}

}

void func2(int i)

{ cout<<st[i];

if(i<3){i+=2;funcl(i);}

}

main( )

{int i=0;fund(i);cout<<endl;}

A.hello

B.hel

C.hlo

D.hlm


参考答案

更多 “ 下列程序执行后的输出结果是void funcl(int i);void func2(int i);char st[]="hello,friend!";void fund(int i){ cout<<st[i];if(i<3){i+=2;func2(i);}}void func2(int i){ cout<<st[i];if(i<3){i+=2;funcl(i);}}main( ){int i=0;fund(i);cout<<endl;}A.helloB.helC.hloD.hlm ” 相关考题
考题 下列程序执行后的输出结果是______。A.helloB.helC.hloD.hlm 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");}

考题 下列程序执行后的输出结果是 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=A.helloB.helC.hloD.hlm

考题 下列程序执行后的输出结果是()。includevoid func1(int i);void func2(int i);char st[ 下列程序执行后的输出结果是( )。 #include<stdio.h> void func1(int i); void func2(int i); char st[]="hello,friend!"; void funcl(int i) { printf("%c",st[i]); if(i<3){i+=2;func 2(i);} } void func 2(int i) { printf("%c",st[i]); if(i<3){i+=2;funcl(i);} } main() { int i=0; funcl(i);printf("\n"); }A.helloB.helC.hloD.hlm

考题 下列程序执行后的输出结果是( )。 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);}A.helloB.helC.holD.hlm

考题 下列程序 void func1(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;funcl(i);} } main() { int i=0;funcl(i);printf("\n");} 执行后的输出结果是( )A.helloB.helC.hloD.hlrn

考题 下列程序执行后的输出结果是 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.helloB.helC.hloD.hlm

考题 下列程序执行后的输出结果是( )。 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.hlmB.hloC.helloD.he1

考题 下面的程序执行后,文件test中的内容是 void fun(char *fname, char *st) { FILE *myf; int i; myf=fopen (fname, "w"); for(i=0; i<strlen(st); i++) fputc(st[i], myf); fclose(myf); } int main(void){ fun("test", "new world"); fun("test", "hello,"); return 0; }A.new worldhello,B.hello,C.new worldD.hello,rld

考题 下列程序执行后的输出结果是 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); }A.helloB.helC.hloD.hlm