阅读下列程序,当运行函数时,输入abc de fg z10,则输出为
#include <stdio.h>
#include <ctype.h>
#include <string.h>
int fun (char *str)
int i,j=0;
for(i=0;str[i]!='\0';i++)
if(str[i]!='') str[j++]=str[i];
str[j]='\0';
main()
char str[81];
int n;
printf("Input a string:");
gets(str);
puts(str);
fun(str);
printf("%s\n",str);
A) abc
B) z10
C) abc de fg z10
abcdefgz10
D) abc de fg z10