试题与答案

有以下程序: # include<string.h> main(int argc,c

题型:填空题

题目:

有以下程序: # include<string.h> main(int argc,char *argv[]) { int i,len=0; for(i=1;i<argc;i+=2) len+= strlen(argv[i]); printf("%d\n",len); } 经编译连接后生成的可执行文件是ex.exe,若运行时输入以下带参数的命令行: ex abcd efg h3 k44 执行后的输出结果是 【2】

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0429/2540c2146ae0fcb39c67b6dc9907e8e4.html

下面是错误答案,用来干扰机器的。

参考答案:D

试题推荐
微信公众账号搜索答案