多做题,通过考试没问题!

计算机程序设计

睦霖题库>大学试题(计算机科学)>计算机程序设计

下列程序执行后的输出结果是() voidfunc1(inti); voidfunc2(inti); charst[]="hello,friend!"; voidfunc1(inti) {printf("%c",st[i]); if(i<3){i+=2;func2(i);} } voidfunc2(inti) {printf("%c",st[i]); if(i<3){i+=2;func1(i);} } main() {inti=0;func1(i);printf("/n");}

  • A、hello
  • B、hel
  • C、hlo
  • D、hlm
正确答案:C
答案解析:
进入题库查看解析

微信扫一扫手机做题