问题 单项选择题

设下面程序的可执行文件名为“prg.exe”,在该程序所在子目录下输入以下命令行:
prg hello good<回车>
则程序的输出结果是______。
main () (int argc,char*argv[])
int i;
if(argc<=0)return;
for(i=1;i<argc;i++)printf("%c",*argv[i]);

A.hello good

B.hg

C.hel

D.hellogood

答案

参考答案:B

单项选择题 A1型题
单项选择题