填空题 以下程序运行时,输出到屏幕的结果中第一行是__(17) 1,第二行是 2(18) 3 。 #include #include int fun(char str[]) {int i,j,len; len=strlen(str); for(i=0,j=0;str[i];i++) if((str[i]>='A'&&str[i]<='Z')||(str[i]>='a'&&str[i]<='z')) str[j++]=str[i]; str[j]='/0'; return len-j; } void main4 {char ss[80]="It23is!"; int n; n=fun(ss); printf("%d/n%s/n",n,ss); }
  • 1、
【正确答案】 1、(17) 3 (18) Itis    
【答案解析】